12345678910111213141516171819202122232425262728293031323334 |
- package logic
- import (
- "context"
- "bp.jydev.jianyu360.cn/BaseService/biService/api/internal/svc"
- "bp.jydev.jianyu360.cn/BaseService/biService/api/internal/types"
- "bp.jydev.jianyu360.cn/BaseService/biService/rpc/biservice"
- "github.com/zeromicro/go-zero/core/logx"
- )
- type DrawClueLogic struct {
- logx.Logger
- ctx context.Context
- svcCtx *svc.ServiceContext
- }
- func NewDrawClueLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DrawClueLogic {
- return &DrawClueLogic{
- Logger: logx.WithContext(ctx),
- ctx: ctx,
- svcCtx: svcCtx,
- }
- }
- func (l *DrawClueLogic) DrawClue(req *types.DrawClueReq) (resp *types.Resp, err error) {
- // todo: add your logic here and delete this line
- res, err := l.svcCtx.BiServiceRpc.DrawClue(l.ctx, &biservice.DrawClueReq{
- PositionId: req.PositionId,
- Count: req.Count,
- })
- return &types.Resp{Error_code: res.ErrorCode, Error_msg: res.ErrorMsg, Data: res.Data}, err
- }
|