// Code generated by goctl. DO NOT EDIT! // Source: consumer.proto package server import ( "context" "app.yhyue.com/moapp/jyInfo/rpc/consumer/internal/logic" "app.yhyue.com/moapp/jyInfo/rpc/consumer/internal/svc" "app.yhyue.com/moapp/jyInfo/rpc/consumer/type/consumer" ) type ConsumerClientServer struct { svcCtx *svc.ServiceContext consumer.UnimplementedConsumerClientServer } func NewConsumerClientServer(svcCtx *svc.ServiceContext) *ConsumerClientServer { return &ConsumerClientServer{ svcCtx: svcCtx, } } // 发布信息 func (s *ConsumerClientServer) PublishInfo(ctx context.Context, in *consumer.PublishInfoReq) (*consumer.PublishInfoResp, error) { l := logic.NewPublishInfoLogic(ctx, s.svcCtx) return l.PublishInfo(in) } // 根据用户id获取当月已发布信息数量 func (s *ConsumerClientServer) InfoByUserId(ctx context.Context, in *consumer.UserIdReq) (*consumer.InfoByUserIdResp, error) { l := logic.NewInfoByUserIdLogic(ctx, s.svcCtx) return l.InfoByUserId(in) } // 关联公告 func (s *ConsumerClientServer) InfoRelated(ctx context.Context, in *consumer.UserIdReq) (*consumer.InfoRelatedResp, error) { l := logic.NewInfoRelatedLogic(ctx, s.svcCtx) return l.InfoRelated(in) } // 我的发布列表 func (s *ConsumerClientServer) MyPublishList(ctx context.Context, in *consumer.MyPublishListReq) (*consumer.MyPublishListResp, error) { l := logic.NewMyPublishListLogic(ctx, s.svcCtx) return l.MyPublishList(in) } // 更新发布的信息0:获取详情;1:物理删除() func (s *ConsumerClientServer) InfoChange(ctx context.Context, in *consumer.InfoDetailReq) (*consumer.InfoDetailResp, error) { l := logic.NewInfoChangeLogic(ctx, s.svcCtx) return l.InfoChange(in) } // 信息审核状态查询 func (s *ConsumerClientServer) StatusQuery(ctx context.Context, in *consumer.StatusReq) (*consumer.StatusResp, error) { l := logic.NewStatusQueryLogic(ctx, s.svcCtx) return l.StatusQuery(in) } // 供应信息查询 func (s *ConsumerClientServer) SupplyInfoSearch(ctx context.Context, in *consumer.SupplyInfoSearchReq) (*consumer.SupplyInfoSearchResp, error) { l := logic.NewSupplyInfoSearchLogic(ctx, s.svcCtx) return l.SupplyInfoSearch(in) } // 供应信息详情(前端页面查询结果详情请求地址) func (s *ConsumerClientServer) SupplyInfoDetail(ctx context.Context, in *consumer.StatusReq) (*consumer.SupplyInfoDetailResp, error) { l := logic.NewSupplyInfoDetailLogic(ctx, s.svcCtx) return l.SupplyInfoDetail(in) } // 上传附件 func (s *ConsumerClientServer) InfoFileUpload(ctx context.Context, in *consumer.InfoFileUploadReq) (*consumer.InfoFileUploadResp, error) { l := logic.NewInfoFileUploadLogic(ctx, s.svcCtx) return l.InfoFileUpload(in) } // 删除附件 func (s *ConsumerClientServer) InfoFileDel(ctx context.Context, in *consumer.InfoFileDelReq) (*consumer.BaseResp, error) { l := logic.NewInfoFileDelLogic(ctx, s.svcCtx) return l.InfoFileDel(in) }