浏览代码

fix:订阅列表api参数调整

fuwencai 2 年之前
父节点
当前提交
97f5c683c2

+ 2 - 1
jyBXSubscribe/api/bxsubscribe.api

@@ -37,7 +37,8 @@ type (
 		NotReturnCount int64                  `json:"notReturnCount,optional"`
 		Item           map[string]interface{} `json:"item,optional"`
 		MgoUserId      string                 `header:"mgoUserId,optional"` //原userId
-
+		AccountId      string                 `header:"accountId,optional"`
+		PositionId     string                 `header:"positionId,optional"`
 	}
 	//
 	someInfoReq {

+ 2 - 0
jyBXSubscribe/api/internal/logic/subscribeListLogic.go

@@ -79,6 +79,8 @@ func (l *SubscribeListLogic) SubscribeList(req *types.SubscribeReq) (resp *types
 		PositionType:   req.PositionType,
 		NotReturnCount: req.NotReturnCount,
 		Item:           matchitems,
+		AccountId:      req.AccountId,
+		PositionId:     req.PositionId,
 		MgoUserId:      req.MgoUserId,
 	})
 	if err != nil {

+ 2 - 0
jyBXSubscribe/api/internal/types/types.go

@@ -29,6 +29,8 @@ type SubscribeReq struct {
 	NotReturnCount int64                  `json:"notReturnCount,optional"`
 	Item           map[string]interface{} `json:"item,optional"`
 	MgoUserId      string                 `header:"mgoUserId,optional"` //原userId
+	AccountId      string                 `header:"accountId,optional"`
+	PositionId     string                 `header:"positionId,optional"`
 }
 
 type SomeInfoReq struct {