1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- package logic
- import (
- "app.yhyue.com/moapp/jyInfo/rpc/manager/managerclient"
- "context"
- "app.yhyue.com/moapp/jybase/common"
- "app.yhyue.com/moapp/jyInfo/api/internal/svc"
- "app.yhyue.com/moapp/jyInfo/api/internal/types"
- "github.com/zeromicro/go-zero/core/logx"
- )
- type InfoExamineLogic struct {
- logx.Logger
- ctx context.Context
- svcCtx *svc.ServiceContext
- }
- func NewInfoExamineLogic(ctx context.Context, svcCtx *svc.ServiceContext) *InfoExamineLogic {
- return &InfoExamineLogic{
- Logger: logx.WithContext(ctx),
- ctx: ctx,
- svcCtx: svcCtx,
- }
- }
- func (l *InfoExamineLogic) InfoExamine(req *types.InfoExamineReq) (resp *types.CommonRes, err error) {
- infoExam, err0 := l.svcCtx.Manager.InfoExamine(l.ctx, &managerclient.InfoExamineReq{
- AppId: req.AppId,
- MsgId: req.MsgId,
- ReviewStatus: req.ReviewStatus,
- ReviewDetail: req.ReviewDetail,
- MsgType: req.MsgType,
- ReviewName: req.Auditor,
- })
- if err0 != nil {
- return &types.CommonRes{
- Err_code: -1,
- Err_msg: "错误",
- Data: nil,
- }, nil
- }
- return &types.CommonRes{
- Err_code: common.IntAll(infoExam.ErrCode),
- Err_msg: infoExam.ErrMsg,
- Data: nil,
- }, nil
- }
|