123456789101112131415161718192021222324252627282930313233343536373839 |
- 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 (
- activityService = &service.ActivityService{}
- )
- type LotteryReceiveLogic struct {
- ctx context.Context
- svcCtx *svc.ServiceContext
- logx.Logger
- }
- func NewLotteryReceiveLogic(ctx context.Context, svcCtx *svc.ServiceContext) *LotteryReceiveLogic {
- return &LotteryReceiveLogic{
- ctx: ctx,
- svcCtx: svcCtx,
- Logger: logx.WithContext(ctx),
- }
- }
- // 奖券领取
- func (l *LotteryReceiveLogic) LotteryReceive(in *activity.LotteryOperation) (*activity.Response, error) {
- // todo: add your logic here and delete this line
- result := &activity.Response{}
- code, msg := activityService.LotteryReceive(in)
- result.Code =code
- result.Message = msg
- return result, nil
- }
|