123456789101112131415161718192021 |
- package service
- import (
- "context"
- "net/url"
- adminmodel "go-common/app/admin/main/mcn/model"
- "go-common/app/interface/main/mcn/model/mcnmodel"
- "go-common/library/ecode"
- "go-common/library/log"
- )
- // CreativeHandle .
- func (s *Service) CreativeHandle(c context.Context, arg *mcnmodel.CreativeCommonReq, params url.Values, key string) (res interface{}, err error) {
- if !s.checkPermission(c, arg.McnMid, arg.UpMid, adminmodel.AttrDataPermitBit) {
- log.Warn("mcn permission insufficient, upmid=%d, mcnmid=%d", arg.UpMid, arg.McnMid)
- err = ecode.MCNPermissionInsufficient
- return
- }
- return s.datadao.HTTPDataHandle(c, params, key)
- }
|