bids.go 390 B

123456789101112131415161718
  1. package service
  2. import (
  3. "gitdxz.51daxuetong.cn/go_dev/bids_rpcx/dao"
  4. )
  5. type Bid interface {
  6. GetSemCategory() ([]dao.SemCategory, error)
  7. GetSemChan() ([]dao.SemChannel, error)
  8. }
  9. type Bids struct{}
  10. func (bids *Bids) GetSemCategory() ([]dao.SemCategory, error) {
  11. return dao.GetAllSemCategory()
  12. }
  13. func (bids *Bids) GetSemChan() ([]dao.SemChannel, error) {
  14. return dao.GetAllSemChan()
  15. }