ソースを参照

CreateScripRequest

wfz 2 年 前
コミット
149d55d736
3 ファイル変更25 行追加2 行削除
  1. 21 2
      api/user/user.pb.go
  2. 2 0
      api/user/user.proto
  3. 2 0
      js/api/user/user_pb.ts

+ 21 - 2
api/user/user.pb.go

@@ -1718,6 +1718,8 @@ type CreateScripRequest struct {
 
 	Text       string `protobuf:"bytes,1,opt,name=text,proto3" json:"text"`             // 纸条内容
 	PictureUrl string `protobuf:"bytes,2,opt,name=pictureUrl,proto3" json:"pictureUrl"` // 纸条背景图
+	Province   string `protobuf:"bytes,3,opt,name=province,proto3" json:"province"`
+	City       string `protobuf:"bytes,4,opt,name=city,proto3" json:"city"`
 }
 
 func (x *CreateScripRequest) Reset() {
@@ -1766,6 +1768,20 @@ func (x *CreateScripRequest) GetPictureUrl() string {
 	return ""
 }
 
+func (x *CreateScripRequest) GetProvince() string {
+	if x != nil {
+		return x.Province
+	}
+	return ""
+}
+
+func (x *CreateScripRequest) GetCity() string {
+	if x != nil {
+		return x.City
+	}
+	return ""
+}
+
 type FindMatchingAvatarAndNumReply struct {
 	state         protoimpl.MessageState
 	sizeCache     protoimpl.SizeCache
@@ -3353,11 +3369,14 @@ var file_user_proto_rawDesc = []byte{
 	0x66, 0x66, 0x73, 0x65, 0x74, 0x22, 0x2e, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53,
 	0x63, 0x72, 0x69, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x73,
 	0x63, 0x72, 0x69, 0x70, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x73, 0x63,
-	0x72, 0x69, 0x70, 0x49, 0x64, 0x22, 0x48, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53,
+	0x72, 0x69, 0x70, 0x49, 0x64, 0x22, 0x78, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53,
 	0x63, 0x72, 0x69, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74,
 	0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x12,
 	0x1e, 0x0a, 0x0a, 0x70, 0x69, 0x63, 0x74, 0x75, 0x72, 0x65, 0x55, 0x72, 0x6c, 0x18, 0x02, 0x20,
-	0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x69, 0x63, 0x74, 0x75, 0x72, 0x65, 0x55, 0x72, 0x6c, 0x22,
+	0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x69, 0x63, 0x74, 0x75, 0x72, 0x65, 0x55, 0x72, 0x6c, 0x12,
+	0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
+	0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63,
+	0x69, 0x74, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x69, 0x74, 0x79, 0x22,
 	0x45, 0x0a, 0x1d, 0x46, 0x69, 0x6e, 0x64, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x41,
 	0x76, 0x61, 0x74, 0x61, 0x72, 0x41, 0x6e, 0x64, 0x4e, 0x75, 0x6d, 0x52, 0x65, 0x70, 0x6c, 0x79,
 	0x12, 0x10, 0x0a, 0x03, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x6e,

+ 2 - 0
api/user/user.proto

@@ -754,6 +754,8 @@ message DeleteScripRequest {
 message CreateScripRequest {
   string text = 1;// 纸条内容
   string pictureUrl = 2; // 纸条背景图
+  string province = 3;
+  string city = 4;
 }
 
 message FindMatchingAvatarAndNumReply{

+ 2 - 0
js/api/user/user_pb.ts

@@ -193,6 +193,8 @@ export interface CreateScripRequest{
     text?:string;
     /**  纸条背景图 */
     pictureUrl?:string;
+    province?:string;
+    city?:string;
 }
 export interface FindMatchingAvatarAndNumReply{
     /**  匹配人数 */