package service import ( "gitdxz.51daxuetong.cn/go_dev/bids_rpcx/dao" ) type Bid interface { GetSemCategory() ([]dao.SemCategory, error) GetSemChan() ([]dao.SemChannel, error) } type Bids struct{} func (bids *Bids) GetSemCategory() ([]dao.SemCategory, error) { return dao.GetAllSemCategory() } func (bids *Bids) GetSemChan() ([]dao.SemChannel, error) { return dao.GetAllSemChan() }