123456789101112131415161718192021222324252627282930 |
- package logic
- import (
- "context"
- "points_service/rpc/integral"
- "points_service/rpc/internal/svc"
- "github.com/tal-tech/go-zero/core/logx"
- )
- type UpdateLogic struct {
- ctx context.Context
- svcCtx *svc.ServiceContext
- logx.Logger
- }
- func NewUpdateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateLogic {
- return &UpdateLogic{
- ctx: ctx,
- svcCtx: svcCtx,
- Logger: logx.WithContext(ctx),
- }
- }
- func (l *UpdateLogic) Update(in *integral.AddReq) (*integral.AddResp, error) {
- // todo: add your logic here and delete this line
- return &integral.AddResp{}, nil
- }
|