|
|
@@ -34,6 +34,7 @@ type PartnerHTTPServer interface {
|
|
|
CreateScrip(context.Context, *CreateScripRequest) (*common.ScripID, error)
|
|
|
CreateUserPartnerRoom(context.Context, *common.CreateChatRoomParam) (*chat.RoomReply, error)
|
|
|
DeleteScrip(context.Context, *common.ScripIdRequest) (*emptypb.Empty, error)
|
|
|
+ FindChatCollectList(context.Context, *common.FindChatRecordListRequest) (*common.ChatRecordListReply, error)
|
|
|
FindChatRecordList(context.Context, *common.FindChatRecordListRequest) (*common.ChatRecordListReply, error)
|
|
|
FindChatRoomMsg(context.Context, *common.FindChatRoomMsgRequest) (*common.ChatRoomMsg, error)
|
|
|
FindChatTopic(context.Context, *common.FindChatTopicRequest) (*common.ChatTopicList, error)
|
|
|
@@ -58,6 +59,8 @@ type PartnerHTTPServer interface {
|
|
|
GetPartnerLookNum(context.Context, *emptypb.Empty) (*statistics.LookMessageReply, error)
|
|
|
GetPartnerMessage(context.Context, *emptypb.Empty) (*PartnerMessage, error)
|
|
|
PartnerApplyWithdraw(context.Context, *PartnerApplyWithdrawRequest) (*emptypb.Empty, error)
|
|
|
+ PartnerCollect(context.Context, *PartnerCollectRequest) (*emptypb.Empty, error)
|
|
|
+ PartnerDeleteCollect(context.Context, *PartnerCollectRequest) (*emptypb.Empty, error)
|
|
|
PartnerGetAward(context.Context, *PartnerGetAwardRequest) (*emptypb.Empty, error)
|
|
|
PartnerGetChatCard(context.Context, *common.PersonParam) (*common.PartnerChatCardInfo, error)
|
|
|
PartnerGetHomeInfo(context.Context, *common.PersonParam) (*common.HomeInfo, error)
|
|
|
@@ -118,6 +121,9 @@ func RegisterPartnerHTTPServer(s *http.Server, srv PartnerHTTPServer) {
|
|
|
r.POST("/api/partner/scrip/look", _Partner_PersonLookScrip0_HTTP_Handler(srv))
|
|
|
r.POST("/api/partner/scrip/look/back", _Partner_PersonClickLookBack0_HTTP_Handler(srv))
|
|
|
r.POST("/api/partner/scrip/reply", _Partner_PersonReplyScrip0_HTTP_Handler(srv))
|
|
|
+ r.POST("/api/partner/collect", _Partner_PartnerCollect0_HTTP_Handler(srv))
|
|
|
+ r.POST("/api/partner/collect/delete", _Partner_PartnerDeleteCollect0_HTTP_Handler(srv))
|
|
|
+ r.POST("/api/partner/collect/list", _Partner_FindChatCollectList0_HTTP_Handler(srv))
|
|
|
r.POST("/api/partner/message", _Partner_GetPartnerMessage0_HTTP_Handler(srv))
|
|
|
r.POST("/api/partner/num/look", _Partner_GetPartnerLookNum0_HTTP_Handler(srv))
|
|
|
r.POST("/api/partner/list/chat/unreply", _Partner_FindUnReplyRoomList0_HTTP_Handler(srv))
|
|
|
@@ -1129,6 +1135,87 @@ func _Partner_PersonReplyScrip0_HTTP_Handler(srv PartnerHTTPServer) func(ctx htt
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+func _Partner_PartnerCollect0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
|
|
|
+ return func(ctx http.Context) error {
|
|
|
+ var in PartnerCollectRequest
|
|
|
+ if err := ctx.Bind(&in); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if err := ctx.BindQuery(&in); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ http.SetOperation(ctx, "/api.partner.Partner/PartnerCollect")
|
|
|
+ h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.PartnerCollect(ctx, req.(*PartnerCollectRequest))
|
|
|
+ })
|
|
|
+ out, err := h(ctx, &in)
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ success := &reply.SuccessReply{
|
|
|
+ Code: 0,
|
|
|
+ }
|
|
|
+ if out != nil {
|
|
|
+ success.Data = out
|
|
|
+ }
|
|
|
+ return ctx.Result(200, success)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func _Partner_PartnerDeleteCollect0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
|
|
|
+ return func(ctx http.Context) error {
|
|
|
+ var in PartnerCollectRequest
|
|
|
+ if err := ctx.Bind(&in); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if err := ctx.BindQuery(&in); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ http.SetOperation(ctx, "/api.partner.Partner/PartnerDeleteCollect")
|
|
|
+ h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.PartnerDeleteCollect(ctx, req.(*PartnerCollectRequest))
|
|
|
+ })
|
|
|
+ out, err := h(ctx, &in)
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ success := &reply.SuccessReply{
|
|
|
+ Code: 0,
|
|
|
+ }
|
|
|
+ if out != nil {
|
|
|
+ success.Data = out
|
|
|
+ }
|
|
|
+ return ctx.Result(200, success)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func _Partner_FindChatCollectList0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
|
|
|
+ return func(ctx http.Context) error {
|
|
|
+ var in common.FindChatRecordListRequest
|
|
|
+ if err := ctx.Bind(&in); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ if err := ctx.BindQuery(&in); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ http.SetOperation(ctx, "/api.partner.Partner/FindChatCollectList")
|
|
|
+ h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.FindChatCollectList(ctx, req.(*common.FindChatRecordListRequest))
|
|
|
+ })
|
|
|
+ out, err := h(ctx, &in)
|
|
|
+ if err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ success := &reply.SuccessReply{
|
|
|
+ Code: 0,
|
|
|
+ }
|
|
|
+ if out != nil {
|
|
|
+ success.Data = out
|
|
|
+ }
|
|
|
+ return ctx.Result(200, success)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
func _Partner_GetPartnerMessage0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
|
|
|
return func(ctx http.Context) error {
|
|
|
var in emptypb.Empty
|
|
|
@@ -1404,6 +1491,7 @@ type PartnerHTTPClient interface {
|
|
|
CreateScrip(ctx context.Context, req *CreateScripRequest, opts ...http.CallOption) (rsp *common.ScripID, err error)
|
|
|
CreateUserPartnerRoom(ctx context.Context, req *common.CreateChatRoomParam, opts ...http.CallOption) (rsp *chat.RoomReply, err error)
|
|
|
DeleteScrip(ctx context.Context, req *common.ScripIdRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
+ FindChatCollectList(ctx context.Context, req *common.FindChatRecordListRequest, opts ...http.CallOption) (rsp *common.ChatRecordListReply, err error)
|
|
|
FindChatRecordList(ctx context.Context, req *common.FindChatRecordListRequest, opts ...http.CallOption) (rsp *common.ChatRecordListReply, err error)
|
|
|
FindChatRoomMsg(ctx context.Context, req *common.FindChatRoomMsgRequest, opts ...http.CallOption) (rsp *common.ChatRoomMsg, err error)
|
|
|
FindChatTopic(ctx context.Context, req *common.FindChatTopicRequest, opts ...http.CallOption) (rsp *common.ChatTopicList, err error)
|
|
|
@@ -1428,6 +1516,8 @@ type PartnerHTTPClient interface {
|
|
|
GetPartnerLookNum(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *statistics.LookMessageReply, err error)
|
|
|
GetPartnerMessage(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *PartnerMessage, err error)
|
|
|
PartnerApplyWithdraw(ctx context.Context, req *PartnerApplyWithdrawRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
+ PartnerCollect(ctx context.Context, req *PartnerCollectRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
+ PartnerDeleteCollect(ctx context.Context, req *PartnerCollectRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
PartnerGetAward(ctx context.Context, req *PartnerGetAwardRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
|
|
|
PartnerGetChatCard(ctx context.Context, req *common.PersonParam, opts ...http.CallOption) (rsp *common.PartnerChatCardInfo, err error)
|
|
|
PartnerGetHomeInfo(ctx context.Context, req *common.PersonParam, opts ...http.CallOption) (rsp *common.HomeInfo, err error)
|
|
|
@@ -1509,6 +1599,19 @@ func (c *PartnerHTTPClientImpl) DeleteScrip(ctx context.Context, in *common.Scri
|
|
|
return &out, err
|
|
|
}
|
|
|
|
|
|
+func (c *PartnerHTTPClientImpl) FindChatCollectList(ctx context.Context, in *common.FindChatRecordListRequest, opts ...http.CallOption) (*common.ChatRecordListReply, error) {
|
|
|
+ var out common.ChatRecordListReply
|
|
|
+ pattern := "/api/partner/collect/list"
|
|
|
+ path := binding.EncodeURL(pattern, in, false)
|
|
|
+ opts = append(opts, http.Operation("/api.partner.Partner/FindChatCollectList"))
|
|
|
+ opts = append(opts, http.PathTemplate(pattern))
|
|
|
+ err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return &out, err
|
|
|
+}
|
|
|
+
|
|
|
func (c *PartnerHTTPClientImpl) FindChatRecordList(ctx context.Context, in *common.FindChatRecordListRequest, opts ...http.CallOption) (*common.ChatRecordListReply, error) {
|
|
|
var out common.ChatRecordListReply
|
|
|
pattern := "/api/partner/chat/record"
|
|
|
@@ -1821,6 +1924,32 @@ func (c *PartnerHTTPClientImpl) PartnerApplyWithdraw(ctx context.Context, in *Pa
|
|
|
return &out, err
|
|
|
}
|
|
|
|
|
|
+func (c *PartnerHTTPClientImpl) PartnerCollect(ctx context.Context, in *PartnerCollectRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
|
|
|
+ var out emptypb.Empty
|
|
|
+ pattern := "/api/partner/collect"
|
|
|
+ path := binding.EncodeURL(pattern, in, false)
|
|
|
+ opts = append(opts, http.Operation("/api.partner.Partner/PartnerCollect"))
|
|
|
+ opts = append(opts, http.PathTemplate(pattern))
|
|
|
+ err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return &out, err
|
|
|
+}
|
|
|
+
|
|
|
+func (c *PartnerHTTPClientImpl) PartnerDeleteCollect(ctx context.Context, in *PartnerCollectRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
|
|
|
+ var out emptypb.Empty
|
|
|
+ pattern := "/api/partner/collect/delete"
|
|
|
+ path := binding.EncodeURL(pattern, in, false)
|
|
|
+ opts = append(opts, http.Operation("/api.partner.Partner/PartnerDeleteCollect"))
|
|
|
+ opts = append(opts, http.PathTemplate(pattern))
|
|
|
+ err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return &out, err
|
|
|
+}
|
|
|
+
|
|
|
func (c *PartnerHTTPClientImpl) PartnerGetAward(ctx context.Context, in *PartnerGetAwardRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
|
|
|
var out emptypb.Empty
|
|
|
pattern := "/api/partner/chat/award"
|