participatesetupinfologic.go 872 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. package logic
  2. import (
  3. "context"
  4. "jyBXCore/rpc/service"
  5. "jyBXCore/rpc/util"
  6. "jyBXCore/rpc/internal/svc"
  7. "jyBXCore/rpc/type/bxcore"
  8. "github.com/zeromicro/go-zero/core/logx"
  9. )
  10. type ParticipateSetUpInfoLogic struct {
  11. ctx context.Context
  12. svcCtx *svc.ServiceContext
  13. logx.Logger
  14. }
  15. func NewParticipateSetUpInfoLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ParticipateSetUpInfoLogic {
  16. return &ParticipateSetUpInfoLogic{
  17. ctx: ctx,
  18. svcCtx: svcCtx,
  19. Logger: logx.WithContext(ctx),
  20. }
  21. }
  22. // 参标设置信息
  23. func (l *ParticipateSetUpInfoLogic) ParticipateSetUpInfo(in *bxcore.ParticipateSetUpInfoReq) (*bxcore.ParticipateSetUpInfoRes, error) {
  24. if msg := util.IsAllowedAccess("setup"); msg != "" {
  25. return &bxcore.ParticipateSetUpInfoRes{
  26. ErrCode: -1,
  27. ErrMsg: msg,
  28. Data: nil,
  29. }, nil
  30. }
  31. return service.GetParticipateSetInfo(in)
  32. }