creative.go 641 B

123456789101112131415161718192021
  1. package service
  2. import (
  3. "context"
  4. "net/url"
  5. adminmodel "go-common/app/admin/main/mcn/model"
  6. "go-common/app/interface/main/mcn/model/mcnmodel"
  7. "go-common/library/ecode"
  8. "go-common/library/log"
  9. )
  10. // CreativeHandle .
  11. func (s *Service) CreativeHandle(c context.Context, arg *mcnmodel.CreativeCommonReq, params url.Values, key string) (res interface{}, err error) {
  12. if !s.checkPermission(c, arg.McnMid, arg.UpMid, adminmodel.AttrDataPermitBit) {
  13. log.Warn("mcn permission insufficient, upmid=%d, mcnmid=%d", arg.UpMid, arg.McnMid)
  14. err = ecode.MCNPermissionInsufficient
  15. return
  16. }
  17. return s.datadao.HTTPDataHandle(c, params, key)
  18. }