Procházet zdrojové kódy

字段类型修改

WH01243 před 2 roky
rodič
revize
818db8b91a

+ 2 - 2
jyBXSubscribe/api/bxsubscribe.api

@@ -66,9 +66,9 @@ type (
 		EntId     string `header:"entId,optional"`
 		EntUserId string `header:"entUserId,optional"`
 		DeptId    string `header:"deptId,optional"` //部门id
-		Vsid      string `json:"vsid"`
+		Vsid      int64  `form:"vsid"`
 		NewUserId int64  `header:"newUserId"`
-		IsEnt     bool   `json:"isEnt,optional"`
+		IsEnt     bool   `form:"isEnt,optional"`
 		UserType  string `path:"userType,optional"`
 	}
 )

+ 1 - 0
jyBXSubscribe/api/internal/logic/setReadLogic.go

@@ -34,6 +34,7 @@ func (l *SetReadLogic) SetRead(req *types.SetReadReq) (resp *types.CommonResp, e
 		EntId:     req.EntId,
 		IsEnt:     req.IsEnt,
 		EntUserId: req.EntUserId,
+		Vsid:      req.Vsid,
 	})
 	if err != nil {
 		return &types.CommonResp{

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

@@ -59,8 +59,8 @@ type SetReadReq struct {
 	EntId     string `header:"entId,optional"`
 	EntUserId string `header:"entUserId,optional"`
 	DeptId    string `header:"deptId,optional"` //部门id
-	Vsid      string `json:"vsid"`
+	Vsid      int64  `form:"vsid"`
 	NewUserId int64  `header:"newUserId"`
-	IsEnt     bool   `json:"isEnt,optional"`
+	IsEnt     bool   `form:"isEnt,optional"`
 	UserType  string `path:"userType,optional"`
 }