wfz 3 سال پیش
والد
کامیت
bf851310b9
3فایلهای تغییر یافته به همراه29 افزوده شده و 16 حذف شده
  1. 26 16
      api/common/common.pb.go
  2. 1 0
      api/common/common.proto
  3. 2 0
      js/api/common/common_pb.ts

+ 26 - 16
api/common/common.pb.go

@@ -1373,14 +1373,15 @@ type UpdateInformationRequest struct {
 	sizeCache     protoimpl.SizeCache
 	unknownFields protoimpl.UnknownFields
 
-	Nickname       string  `protobuf:"bytes,1,opt,name=Nickname,proto3" json:"Nickname"`             // 昵称
-	AvatarUrl      string  `protobuf:"bytes,2,opt,name=avatarUrl,proto3" json:"avatarUrl"`           // 头像
-	Sex            int64   `protobuf:"varint,3,opt,name=sex,proto3" json:"sex"`                      // 性别
-	Birthday       int64   `protobuf:"varint,4,opt,name=birthday,proto3" json:"birthday"`            // 出生日期(毫秒级时间戳)
-	TagList        []int64 `protobuf:"varint,5,rep,packed,name=tagList,proto3" json:"tagList"`       // 标签id列表
-	IntroduceVoice string  `protobuf:"bytes,6,opt,name=introduceVoice,proto3" json:"introduceVoice"` // 介绍语音的链接
-	Longitude      float64 `protobuf:"fixed64,7,opt,name=longitude,proto3" json:"longitude"`         // 经度
-	Latitude       float64 `protobuf:"fixed64,8,opt,name=latitude,proto3" json:"latitude"`           // 纬度
+	Nickname       string   `protobuf:"bytes,1,opt,name=Nickname,proto3" json:"Nickname"`             // 昵称
+	AvatarUrl      string   `protobuf:"bytes,2,opt,name=avatarUrl,proto3" json:"avatarUrl"`           // 头像
+	Sex            int64    `protobuf:"varint,3,opt,name=sex,proto3" json:"sex"`                      // 性别
+	Birthday       int64    `protobuf:"varint,4,opt,name=birthday,proto3" json:"birthday"`            // 出生日期(毫秒级时间戳)
+	TagList        []int64  `protobuf:"varint,5,rep,packed,name=tagList,proto3" json:"tagList"`       // 标签id列表
+	IntroduceVoice string   `protobuf:"bytes,6,opt,name=introduceVoice,proto3" json:"introduceVoice"` // 介绍语音的链接
+	Longitude      float64  `protobuf:"fixed64,7,opt,name=longitude,proto3" json:"longitude"`         // 经度
+	Latitude       float64  `protobuf:"fixed64,8,opt,name=latitude,proto3" json:"latitude"`           // 纬度
+	Pictures       []string `protobuf:"bytes,9,rep,name=pictures,proto3" json:"pictures"`             // 相册(主页图片)
 }
 
 func (x *UpdateInformationRequest) Reset() {
@@ -1471,6 +1472,13 @@ func (x *UpdateInformationRequest) GetLatitude() float64 {
 	return 0
 }
 
+func (x *UpdateInformationRequest) GetPictures() []string {
+	if x != nil {
+		return x.Pictures
+	}
+	return nil
+}
+
 var File_common_proto protoreflect.FileDescriptor
 
 var file_common_proto_rawDesc = []byte{
@@ -1600,8 +1608,8 @@ var file_common_proto_rawDesc = []byte{
 	0x01, 0x28, 0x03, 0x52, 0x03, 0x73, 0x65, 0x78, 0x22, 0x34, 0x0a, 0x14, 0x52, 0x61, 0x6e, 0x64,
 	0x6f, 0x6d, 0x49, 0x6e, 0x74, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79,
 	0x12, 0x1c, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x18, 0x01, 0x20,
-	0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x22, 0xfe,
-	0x01, 0x0a, 0x18, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61,
+	0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x22, 0x9a,
+	0x02, 0x0a, 0x18, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61,
 	0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x4e,
 	0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x4e,
 	0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61,
@@ -1616,12 +1624,14 @@ var file_common_proto_rawDesc = []byte{
 	0x56, 0x6f, 0x69, 0x63, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6c, 0x6f, 0x6e, 0x67, 0x69, 0x74, 0x75,
 	0x64, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x01, 0x52, 0x09, 0x6c, 0x6f, 0x6e, 0x67, 0x69, 0x74,
 	0x75, 0x64, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x61, 0x74, 0x69, 0x74, 0x75, 0x64, 0x65, 0x18,
-	0x08, 0x20, 0x01, 0x28, 0x01, 0x52, 0x08, 0x6c, 0x61, 0x74, 0x69, 0x74, 0x75, 0x64, 0x65, 0x42,
-	0x43, 0x0a, 0x0a, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x01, 0x5a,
-	0x33, 0x67, 0x69, 0x74, 0x2e, 0x69, 0x6b, 0x75, 0x62, 0x61, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
-	0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x70, 0x77, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
-	0x75, 0x66, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x3b, 0x63, 0x6f,
-	0x6d, 0x6d, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+	0x08, 0x20, 0x01, 0x28, 0x01, 0x52, 0x08, 0x6c, 0x61, 0x74, 0x69, 0x74, 0x75, 0x64, 0x65, 0x12,
+	0x1a, 0x0a, 0x08, 0x70, 0x69, 0x63, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28,
+	0x09, 0x52, 0x08, 0x70, 0x69, 0x63, 0x74, 0x75, 0x72, 0x65, 0x73, 0x42, 0x43, 0x0a, 0x0a, 0x61,
+	0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x01, 0x5a, 0x33, 0x67, 0x69, 0x74,
+	0x2e, 0x69, 0x6b, 0x75, 0x62, 0x61, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x65, 0x72, 0x76,
+	0x65, 0x72, 0x2f, 0x70, 0x77, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61,
+	0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x3b, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
+	0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
 }
 
 var (

+ 1 - 0
api/common/common.proto

@@ -148,4 +148,5 @@ message UpdateInformationRequest {
   string introduceVoice = 6;// 介绍语音的链接
   double longitude = 7;// 经度
   double latitude = 8;// 纬度
+  repeated string pictures = 9;// 相册(主页图片)
 }

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

@@ -164,5 +164,7 @@ export interface UpdateInformationRequest{
     longitude?:number;
     /**  纬度 */
     latitude?:number;
+    /**  相册(主页图片) */
+    pictures?:Array<string>;
 }