123456789101112131415161718192021222324252627282930 |
- package logic
- import (
- "context"
- "bp.jydev.jianyu360.cn/BaseService/resourceCenter/rpc/internal/svc"
- "bp.jydev.jianyu360.cn/BaseService/resourceCenter/rpc/pb"
- "github.com/zeromicro/go-zero/core/logx"
- )
- type DeductionLogic struct {
- ctx context.Context
- svcCtx *svc.ServiceContext
- logx.Logger
- }
- func NewDeductionLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeductionLogic {
- return &DeductionLogic{
- ctx: ctx,
- svcCtx: svcCtx,
- Logger: logx.WithContext(ctx),
- }
- }
- func (l *DeductionLogic) Deduction(in *pb.DeductionReq) (*pb.Resp, error) {
- // todo: add your logic here and delete this line
- return &pb.Resp{}, nil
- }
|