You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
641 B
21 lines
641 B
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) |
|
}
|
|
|