material.go 450 B

12345678910111213141516
  1. package service
  2. import (
  3. "context"
  4. "go-common/app/admin/main/creative/model/material"
  5. )
  6. // CategoryByID .
  7. func (s *Service) CategoryByID(c context.Context, id int64) (cate *material.Category, err error) {
  8. return s.dao.CategoryByID(c, id)
  9. }
  10. // BindWithCategory .
  11. func (s *Service) BindWithCategory(c context.Context, MaterialID, CategoryID, index int64) (id int64, err error) {
  12. return s.dao.BindWithCategory(c, MaterialID, CategoryID, index)
  13. }