go-common/app/interface/main/mcn/service/creative.go
2019-04-22 18:49:16 +08:00

22 lines
641 B
Go

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)
}