go-common/app/admin/main/creative/service/material.go

17 lines
450 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package service
import (
"context"
"go-common/app/admin/main/creative/model/material"
)
// CategoryByID .
func (s *Service) CategoryByID(c context.Context, id int64) (cate *material.Category, err error) {
return s.dao.CategoryByID(c, id)
}
// BindWithCategory .
func (s *Service) BindWithCategory(c context.Context, MaterialID, CategoryID, index int64) (id int64, err error) {
return s.dao.BindWithCategory(c, MaterialID, CategoryID, index)
}