Prechádzať zdrojové kódy

浏览次数以及点赞次数

wfz 3 rokov pred
rodič
commit
a1205c969a

+ 6 - 6
api/common/common.pb.go

@@ -5296,8 +5296,8 @@ type ScripInfo struct {
 	VipFunctions  []string           `protobuf:"bytes,22,rep,name=vipFunctions,proto3" json:"vipFunctions"`   // vip功能
 	Province      string             `protobuf:"bytes,23,opt,name=province,proto3" json:"province"`           // 省份
 	City          string             `protobuf:"bytes,24,opt,name=city,proto3" json:"city"`                   // 市
-	WatchNum      int64              `protobuf:"varint,25,opt,name=WatchNum,proto3" json:"WatchNum"`          // 浏览次数
-	StarNum       int64              `protobuf:"varint,26,opt,name=StarNum,proto3" json:"StarNum"`            // 点赞次数
+	WatchNum      int64              `protobuf:"varint,25,opt,name=watchNum,proto3" json:"watchNum"`          // 浏览次数
+	StarNum       int64              `protobuf:"varint,26,opt,name=starNum,proto3" json:"starNum"`            // 点赞次数
 }
 
 func (x *ScripInfo) Reset() {
@@ -9886,10 +9886,10 @@ var file_common_proto_rawDesc = []byte{
 	0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f,
 	0x76, 0x69, 0x6e, 0x63, 0x65, 0x18, 0x17, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f,
 	0x76, 0x69, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x69, 0x74, 0x79, 0x18, 0x18, 0x20,
-	0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x69, 0x74, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x57, 0x61, 0x74,
-	0x63, 0x68, 0x4e, 0x75, 0x6d, 0x18, 0x19, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x57, 0x61, 0x74,
-	0x63, 0x68, 0x4e, 0x75, 0x6d, 0x12, 0x18, 0x0a, 0x07, 0x53, 0x74, 0x61, 0x72, 0x4e, 0x75, 0x6d,
-	0x18, 0x1a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x53, 0x74, 0x61, 0x72, 0x4e, 0x75, 0x6d, 0x22,
+	0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x69, 0x74, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x77, 0x61, 0x74,
+	0x63, 0x68, 0x4e, 0x75, 0x6d, 0x18, 0x19, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x77, 0x61, 0x74,
+	0x63, 0x68, 0x4e, 0x75, 0x6d, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x74, 0x61, 0x72, 0x4e, 0x75, 0x6d,
+	0x18, 0x1a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x73, 0x74, 0x61, 0x72, 0x4e, 0x75, 0x6d, 0x22,
 	0x83, 0x01, 0x0a, 0x11, 0x53, 0x63, 0x72, 0x69, 0x70, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x4d, 0x65,
 	0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
 	0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6d, 0x65, 0x73, 0x73,

+ 2 - 2
api/common/common.proto

@@ -558,8 +558,8 @@ message ScripInfo {
   repeated string vipFunctions = 22;// vip功能
   string province = 23;// 省份
   string city = 24;// 市
-  int64 WatchNum = 25;// 浏览次数
-  int64 StarNum = 26;// 点赞次数
+  int64 watchNum = 25;// 浏览次数
+  int64 starNum = 26;// 点赞次数
 }
 
 message ScripReplyMessage{

+ 2 - 2
js/api/common/common_pb.ts

@@ -751,9 +751,9 @@ export interface ScripInfo{
     /**  市 */
     city?:string;
     /**  浏览次数 */
-    WatchNum?:number;
+    watchNum?:number;
     /**  点赞次数 */
-    StarNum?:number;
+    starNum?:number;
 }
 export interface ScripReplyMessage{
     /**  小纸条回复的类型 */