Procházet zdrojové kódy

数据类型修改

WH01243 před 2 roky
rodič
revize
6abef88a99

+ 3 - 3
jyBXSubscribe/api/bxsubscribe.api

@@ -145,13 +145,13 @@ type (
 		EntUserId    int64    `header:"entUserId,optional"`
 		PositionType int64    `header:"positionType,optional"`
 		UserId       string   `header:"mgoUserId,optional"`
-		Item         string   `json:"item"`
+		Item         string   `json:"item,optional"`
 		SetType      string   `json:"setType"`
 		Ratemode     int64    `json:"ratemode,optional"`
 		Times        []string `json:"times,optional"`
 		PushType     string   `json:"pushType,optional"`
-		PushValue    int64    `json:"pushValue,optiona"`
-		Interested   int64    `json:"interested,optiona"`
+		PushValue    int64    `json:"pushValue,optional"`
+		Interested   int64    `json:"interested,optional"`
 	}
 )
 service bxsubscribe-api {

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

@@ -145,11 +145,11 @@ type SetPushSetReq struct {
 	EntUserId    int64    `header:"entUserId,optional"`
 	PositionType int64    `header:"positionType,optional"`
 	UserId       string   `header:"mgoUserId,optional"`
-	Item         string   `json:"item"`
+	Item         string   `json:"item,optional"`
 	SetType      string   `json:"setType"`
 	Ratemode     int64    `json:"ratemode,optional"`
 	Times        []string `json:"times,optional"`
 	PushType     string   `json:"pushType,optional"`
-	PushValue    int64    `json:"pushValue,optiona"`
-	Interested   int64    `json:"interested,optiona"`
+	PushValue    int64    `json:"pushValue,optional"`
+	Interested   int64    `json:"interested,optional"`
 }

+ 3 - 3
jyBXSubscribe/rpc/model/service/pushSet.go

@@ -24,17 +24,17 @@ func (this *PushSetService) Update(item, setType, pushType string, ratemode, pus
 	switch setType {
 	case "pushRoute":
 		set = map[string]interface{}{
-			fmt.Sprintf("o_pushset.%s.%s", item, pushType): pushValue,
+			fmt.Sprintf("o_pushset.%s.%s", item, pushType): common.IntAll(pushValue),
 		}
 		break
 	case "a_times":
 		set = map[string]interface{}{
 			fmt.Sprintf("o_pushset.%s.a_times", item):    times,
-			fmt.Sprintf("o_pushset.%s.i_ratemode", item): ratemode,
+			fmt.Sprintf("o_pushset.%s.i_ratemode", item): common.IntAll(ratemode),
 		}
 	default:
 		set = map[string]interface{}{
-			"o_pushset.i_interested": interested,
+			"o_pushset.i_interested": common.IntAll(interested),
 		}
 	}
 	update := false