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