1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- package logic
- import (
- "context"
- "jyBXCore/rpc/type/bxcore"
- "net/http"
- "jyBXCore/api/internal/svc"
- "jyBXCore/api/internal/types"
- "github.com/zeromicro/go-zero/core/logx"
- )
- type ParticipateShowLogic struct {
- logx.Logger
- ctx context.Context
- svcCtx *svc.ServiceContext
- r *http.Request
- }
- func NewParticipateShowLogic(ctx context.Context, svcCtx *svc.ServiceContext, r *http.Request) *ParticipateShowLogic {
- return &ParticipateShowLogic{
- Logger: logx.WithContext(ctx),
- ctx: ctx,
- svcCtx: svcCtx,
- r: r,
- }
- }
- func (l *ParticipateShowLogic) ParticipateShow(req *types.ParticipateShowReq) (resp *types.CommonResp, err error) {
- res, err := l.svcCtx.BxCore.ParticipateShow(l.ctx, &bxcore.ParticipateShowReq{
- EntId: req.EntId,
- EntUserId: req.EntUserId,
- PositionId: req.PositionId,
- PositionType: req.PositionType,
- AppId: req.AppId,
- MgoUserId: req.MgoUserId,
- AccountId: req.AccountId,
- UserId: req.UserId,
- NewUserId: req.NewUserId,
- Ids: req.Ids,
- })
- if err != nil {
- return &types.CommonResp{
- Err_code: res.ErrCode,
- Err_msg: res.ErrMsg,
- Data: false,
- }, nil
- }
- return &types.CommonResp{
- Err_code: res.ErrCode,
- Err_msg: res.ErrMsg,
- Data: res.Data,
- }, nil
- }
|