package logic import ( "app.yhyue.com/moapp/jyMarketing/service" "context" "app.yhyue.com/moapp/jyMarketing/rpc/activity" "app.yhyue.com/moapp/jyMarketing/rpc/internal/svc" "github.com/tal-tech/go-zero/core/logx" ) var ( adService = &service.AdvertisingService{} ) type AdvertisingExposureLogic struct { ctx context.Context svcCtx *svc.ServiceContext logx.Logger } func NewAdvertisingExposureLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AdvertisingExposureLogic { return &AdvertisingExposureLogic{ ctx: ctx, svcCtx: svcCtx, Logger: logx.WithContext(ctx), } } // 广告联盟-曝光 func (l *AdvertisingExposureLogic) AdvertisingExposure(in *activity.AdvertisingReq) (*activity.Response, error) { // todo: add your logic here and delete this line result := &activity.Response{} code, msg := adService.InsertAdExposure(in) result.Code =code result.Message = msg return result, nil }