github.com/Go-To-Byte/DouSheng/user_center@v0.0.0-20230524130918-ad531c1a3f6a/apps/user/user.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.28.1 4 // protoc v3.21.12 5 // source: apps/user/pb/user.proto 6 7 package user 8 9 import ( 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 reflect "reflect" 13 sync "sync" 14 ) 15 16 const ( 17 // Verify that this generated code is sufficiently up-to-date. 18 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 19 // Verify that runtime/protoimpl is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 21 ) 22 23 // 用户注册 & 登录 的接口请求 model 24 type LoginAndRegisterRequest struct { 25 state protoimpl.MessageState 26 sizeCache protoimpl.SizeCache 27 unknownFields protoimpl.UnknownFields 28 29 // 用户名【注册的话,最长32个字符】 30 // @gotags: json:"username" form:"username" binding:"required,max=32" validate:"required,max=32" 31 Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username" form:"username" binding:"required,max=32" validate:"required,max=32"` 32 // 密码 33 // @gotags: json:"password" form:"password" binding:"required,max=32" validate:"required,max=32" 34 Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password" form:"password" binding:"required,max=32" validate:"required,max=32"` 35 } 36 37 func (x *LoginAndRegisterRequest) Reset() { 38 *x = LoginAndRegisterRequest{} 39 if protoimpl.UnsafeEnabled { 40 mi := &file_apps_user_pb_user_proto_msgTypes[0] 41 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 42 ms.StoreMessageInfo(mi) 43 } 44 } 45 46 func (x *LoginAndRegisterRequest) String() string { 47 return protoimpl.X.MessageStringOf(x) 48 } 49 50 func (*LoginAndRegisterRequest) ProtoMessage() {} 51 52 func (x *LoginAndRegisterRequest) ProtoReflect() protoreflect.Message { 53 mi := &file_apps_user_pb_user_proto_msgTypes[0] 54 if protoimpl.UnsafeEnabled && x != nil { 55 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 56 if ms.LoadMessageInfo() == nil { 57 ms.StoreMessageInfo(mi) 58 } 59 return ms 60 } 61 return mi.MessageOf(x) 62 } 63 64 // Deprecated: Use LoginAndRegisterRequest.ProtoReflect.Descriptor instead. 65 func (*LoginAndRegisterRequest) Descriptor() ([]byte, []int) { 66 return file_apps_user_pb_user_proto_rawDescGZIP(), []int{0} 67 } 68 69 func (x *LoginAndRegisterRequest) GetUsername() string { 70 if x != nil { 71 return x.Username 72 } 73 return "" 74 } 75 76 func (x *LoginAndRegisterRequest) GetPassword() string { 77 if x != nil { 78 return x.Password 79 } 80 return "" 81 } 82 83 // 用户注册 & 登录 的接口响应 model 84 type TokenResponse struct { 85 state protoimpl.MessageState 86 sizeCache protoimpl.SizeCache 87 unknownFields protoimpl.UnknownFields 88 89 // 用户ID 90 // @gotags: json:"user_id" 91 UserId int64 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id"` 92 // 用户鉴权Token 93 // @gotags: json:"token" 94 Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token"` 95 } 96 97 func (x *TokenResponse) Reset() { 98 *x = TokenResponse{} 99 if protoimpl.UnsafeEnabled { 100 mi := &file_apps_user_pb_user_proto_msgTypes[1] 101 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 102 ms.StoreMessageInfo(mi) 103 } 104 } 105 106 func (x *TokenResponse) String() string { 107 return protoimpl.X.MessageStringOf(x) 108 } 109 110 func (*TokenResponse) ProtoMessage() {} 111 112 func (x *TokenResponse) ProtoReflect() protoreflect.Message { 113 mi := &file_apps_user_pb_user_proto_msgTypes[1] 114 if protoimpl.UnsafeEnabled && x != nil { 115 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 116 if ms.LoadMessageInfo() == nil { 117 ms.StoreMessageInfo(mi) 118 } 119 return ms 120 } 121 return mi.MessageOf(x) 122 } 123 124 // Deprecated: Use TokenResponse.ProtoReflect.Descriptor instead. 125 func (*TokenResponse) Descriptor() ([]byte, []int) { 126 return file_apps_user_pb_user_proto_rawDescGZIP(), []int{1} 127 } 128 129 func (x *TokenResponse) GetUserId() int64 { 130 if x != nil { 131 return x.UserId 132 } 133 return 0 134 } 135 136 func (x *TokenResponse) GetToken() string { 137 if x != nil { 138 return x.Token 139 } 140 return "" 141 } 142 143 // 获取用户信息 的接口请求 model 144 type UserInfoRequest struct { 145 state protoimpl.MessageState 146 sizeCache protoimpl.SizeCache 147 unknownFields protoimpl.UnknownFields 148 149 // 用户ID 150 // @gotags: json:"user_id" form:"user_id" validate:"required" binding:"required" 151 UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id" form:"user_id" validate:"required" binding:"required"` 152 // 用户鉴权Token [注:这里用 validate,是因为内部方法也必须要用到 Token,并不是所有 token 都 validate] 153 // @gotags: json:"token" form:"token" binding:"required" validate:"required" 154 Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token" form:"token" binding:"required" validate:"required"` 155 } 156 157 func (x *UserInfoRequest) Reset() { 158 *x = UserInfoRequest{} 159 if protoimpl.UnsafeEnabled { 160 mi := &file_apps_user_pb_user_proto_msgTypes[2] 161 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 162 ms.StoreMessageInfo(mi) 163 } 164 } 165 166 func (x *UserInfoRequest) String() string { 167 return protoimpl.X.MessageStringOf(x) 168 } 169 170 func (*UserInfoRequest) ProtoMessage() {} 171 172 func (x *UserInfoRequest) ProtoReflect() protoreflect.Message { 173 mi := &file_apps_user_pb_user_proto_msgTypes[2] 174 if protoimpl.UnsafeEnabled && x != nil { 175 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 176 if ms.LoadMessageInfo() == nil { 177 ms.StoreMessageInfo(mi) 178 } 179 return ms 180 } 181 return mi.MessageOf(x) 182 } 183 184 // Deprecated: Use UserInfoRequest.ProtoReflect.Descriptor instead. 185 func (*UserInfoRequest) Descriptor() ([]byte, []int) { 186 return file_apps_user_pb_user_proto_rawDescGZIP(), []int{2} 187 } 188 189 func (x *UserInfoRequest) GetUserId() int64 { 190 if x != nil { 191 return x.UserId 192 } 193 return 0 194 } 195 196 func (x *UserInfoRequest) GetToken() string { 197 if x != nil { 198 return x.Token 199 } 200 return "" 201 } 202 203 // 获取用户信息 的接口响应 model 204 type UserInfoResponse struct { 205 state protoimpl.MessageState 206 sizeCache protoimpl.SizeCache 207 unknownFields protoimpl.UnknownFields 208 209 // 用户信息 210 // @gotags: json:"user" 211 User *User `protobuf:"bytes,3,opt,name=user,proto3" json:"user"` 212 } 213 214 func (x *UserInfoResponse) Reset() { 215 *x = UserInfoResponse{} 216 if protoimpl.UnsafeEnabled { 217 mi := &file_apps_user_pb_user_proto_msgTypes[3] 218 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 219 ms.StoreMessageInfo(mi) 220 } 221 } 222 223 func (x *UserInfoResponse) String() string { 224 return protoimpl.X.MessageStringOf(x) 225 } 226 227 func (*UserInfoResponse) ProtoMessage() {} 228 229 func (x *UserInfoResponse) ProtoReflect() protoreflect.Message { 230 mi := &file_apps_user_pb_user_proto_msgTypes[3] 231 if protoimpl.UnsafeEnabled && x != nil { 232 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 233 if ms.LoadMessageInfo() == nil { 234 ms.StoreMessageInfo(mi) 235 } 236 return ms 237 } 238 return mi.MessageOf(x) 239 } 240 241 // Deprecated: Use UserInfoResponse.ProtoReflect.Descriptor instead. 242 func (*UserInfoResponse) Descriptor() ([]byte, []int) { 243 return file_apps_user_pb_user_proto_rawDescGZIP(), []int{3} 244 } 245 246 func (x *UserInfoResponse) GetUser() *User { 247 if x != nil { 248 return x.User 249 } 250 return nil 251 } 252 253 // 调用用户信息 时返回的User 254 type User struct { 255 state protoimpl.MessageState 256 sizeCache protoimpl.SizeCache 257 unknownFields protoimpl.UnknownFields 258 259 // @gotags: json:"id" 260 Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"` // 用户id 261 // @gotags: json:"name" 262 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name"` // 用户名称 263 // @gotags: json:"follow_count" 264 FollowCount *int64 `protobuf:"varint,3,opt,name=follow_count,json=followCount,proto3,oneof" json:"follow_count"` // 关注总数 265 // @gotags: json:"follower_count" 266 FollowerCount *int64 `protobuf:"varint,4,opt,name=follower_count,json=followerCount,proto3,oneof" json:"follower_count"` // 粉丝总数 267 // @gotags: json:"is_follow" 268 IsFollow bool `protobuf:"varint,5,opt,name=is_follow,json=isFollow,proto3" json:"is_follow"` // true-已关注,false-未关 269 // @gotags: json:"avatar" 270 Avatar *string `protobuf:"bytes,6,opt,name=avatar,proto3,oneof" json:"avatar"` //用户头像 271 // @gotags: json:"background_image" 272 BackgroundImage *string `protobuf:"bytes,7,opt,name=background_image,json=backgroundImage,proto3,oneof" json:"background_image"` //用户个人页顶部大图 273 // @gotags: json:"signature" 274 Signature *string `protobuf:"bytes,8,opt,name=signature,proto3,oneof" json:"signature"` //个人简介 275 // @gotags: json:"total_favorited" 276 TotalFavorited *int64 `protobuf:"varint,9,opt,name=total_favorited,json=totalFavorited,proto3,oneof" json:"total_favorited"` //获赞数量 277 // @gotags: json:"work_count" 278 WorkCount *int64 `protobuf:"varint,10,opt,name=work_count,json=workCount,proto3,oneof" json:"work_count"` //作品数 279 // @gotags: json:"favorite_count" 280 FavoriteCount *int64 `protobuf:"varint,11,opt,name=favorite_count,json=favoriteCount,proto3,oneof" json:"favorite_count"` //点赞数量 281 } 282 283 func (x *User) Reset() { 284 *x = User{} 285 if protoimpl.UnsafeEnabled { 286 mi := &file_apps_user_pb_user_proto_msgTypes[4] 287 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 288 ms.StoreMessageInfo(mi) 289 } 290 } 291 292 func (x *User) String() string { 293 return protoimpl.X.MessageStringOf(x) 294 } 295 296 func (*User) ProtoMessage() {} 297 298 func (x *User) ProtoReflect() protoreflect.Message { 299 mi := &file_apps_user_pb_user_proto_msgTypes[4] 300 if protoimpl.UnsafeEnabled && x != nil { 301 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 302 if ms.LoadMessageInfo() == nil { 303 ms.StoreMessageInfo(mi) 304 } 305 return ms 306 } 307 return mi.MessageOf(x) 308 } 309 310 // Deprecated: Use User.ProtoReflect.Descriptor instead. 311 func (*User) Descriptor() ([]byte, []int) { 312 return file_apps_user_pb_user_proto_rawDescGZIP(), []int{4} 313 } 314 315 func (x *User) GetId() int64 { 316 if x != nil { 317 return x.Id 318 } 319 return 0 320 } 321 322 func (x *User) GetName() string { 323 if x != nil { 324 return x.Name 325 } 326 return "" 327 } 328 329 func (x *User) GetFollowCount() int64 { 330 if x != nil && x.FollowCount != nil { 331 return *x.FollowCount 332 } 333 return 0 334 } 335 336 func (x *User) GetFollowerCount() int64 { 337 if x != nil && x.FollowerCount != nil { 338 return *x.FollowerCount 339 } 340 return 0 341 } 342 343 func (x *User) GetIsFollow() bool { 344 if x != nil { 345 return x.IsFollow 346 } 347 return false 348 } 349 350 func (x *User) GetAvatar() string { 351 if x != nil && x.Avatar != nil { 352 return *x.Avatar 353 } 354 return "" 355 } 356 357 func (x *User) GetBackgroundImage() string { 358 if x != nil && x.BackgroundImage != nil { 359 return *x.BackgroundImage 360 } 361 return "" 362 } 363 364 func (x *User) GetSignature() string { 365 if x != nil && x.Signature != nil { 366 return *x.Signature 367 } 368 return "" 369 } 370 371 func (x *User) GetTotalFavorited() int64 { 372 if x != nil && x.TotalFavorited != nil { 373 return *x.TotalFavorited 374 } 375 return 0 376 } 377 378 func (x *User) GetWorkCount() int64 { 379 if x != nil && x.WorkCount != nil { 380 return *x.WorkCount 381 } 382 return 0 383 } 384 385 func (x *User) GetFavoriteCount() int64 { 386 if x != nil && x.FavoriteCount != nil { 387 return *x.FavoriteCount 388 } 389 return 0 390 } 391 392 // 与数据库对应的 PO 对象 393 type UserPo struct { 394 state protoimpl.MessageState 395 sizeCache protoimpl.SizeCache 396 unknownFields protoimpl.UnknownFields 397 398 // 用户ID 399 // @gotags: json:"id" gorm:"id" 400 Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id" gorm:"id"` 401 // 用户名称 402 // @gotags: json:"username" gorm:"username" 403 Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username" gorm:"username"` 404 // 用户名称 405 // @gotags: json:"password" gorm:"password" 406 Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password" gorm:"password"` 407 } 408 409 func (x *UserPo) Reset() { 410 *x = UserPo{} 411 if protoimpl.UnsafeEnabled { 412 mi := &file_apps_user_pb_user_proto_msgTypes[5] 413 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 414 ms.StoreMessageInfo(mi) 415 } 416 } 417 418 func (x *UserPo) String() string { 419 return protoimpl.X.MessageStringOf(x) 420 } 421 422 func (*UserPo) ProtoMessage() {} 423 424 func (x *UserPo) ProtoReflect() protoreflect.Message { 425 mi := &file_apps_user_pb_user_proto_msgTypes[5] 426 if protoimpl.UnsafeEnabled && x != nil { 427 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 428 if ms.LoadMessageInfo() == nil { 429 ms.StoreMessageInfo(mi) 430 } 431 return ms 432 } 433 return mi.MessageOf(x) 434 } 435 436 // Deprecated: Use UserPo.ProtoReflect.Descriptor instead. 437 func (*UserPo) Descriptor() ([]byte, []int) { 438 return file_apps_user_pb_user_proto_rawDescGZIP(), []int{5} 439 } 440 441 func (x *UserPo) GetId() int64 { 442 if x != nil { 443 return x.Id 444 } 445 return 0 446 } 447 448 func (x *UserPo) GetUsername() string { 449 if x != nil { 450 return x.Username 451 } 452 return "" 453 } 454 455 func (x *UserPo) GetPassword() string { 456 if x != nil { 457 return x.Password 458 } 459 return "" 460 } 461 462 // 用户IDs 463 type UserMapRequest struct { 464 state protoimpl.MessageState 465 sizeCache protoimpl.SizeCache 466 unknownFields protoimpl.UnknownFields 467 468 // 用户ID 列表 469 // @gotags: json:"user_ids" 470 UserIds []int64 `protobuf:"varint,1,rep,packed,name=user_ids,json=userIds,proto3" json:"user_ids"` 471 // 用户鉴权Token [注:这里用 validate,是因为内部方法也必须要用到 Token,并不是所有 token 都 validate] 472 // @gotags: json:"token" validate:"required" 473 Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token" validate:"required"` 474 } 475 476 func (x *UserMapRequest) Reset() { 477 *x = UserMapRequest{} 478 if protoimpl.UnsafeEnabled { 479 mi := &file_apps_user_pb_user_proto_msgTypes[6] 480 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 481 ms.StoreMessageInfo(mi) 482 } 483 } 484 485 func (x *UserMapRequest) String() string { 486 return protoimpl.X.MessageStringOf(x) 487 } 488 489 func (*UserMapRequest) ProtoMessage() {} 490 491 func (x *UserMapRequest) ProtoReflect() protoreflect.Message { 492 mi := &file_apps_user_pb_user_proto_msgTypes[6] 493 if protoimpl.UnsafeEnabled && x != nil { 494 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 495 if ms.LoadMessageInfo() == nil { 496 ms.StoreMessageInfo(mi) 497 } 498 return ms 499 } 500 return mi.MessageOf(x) 501 } 502 503 // Deprecated: Use UserMapRequest.ProtoReflect.Descriptor instead. 504 func (*UserMapRequest) Descriptor() ([]byte, []int) { 505 return file_apps_user_pb_user_proto_rawDescGZIP(), []int{6} 506 } 507 508 func (x *UserMapRequest) GetUserIds() []int64 { 509 if x != nil { 510 return x.UserIds 511 } 512 return nil 513 } 514 515 func (x *UserMapRequest) GetToken() string { 516 if x != nil { 517 return x.Token 518 } 519 return "" 520 } 521 522 // 用户列表:map[userId] = User 523 type UserMapResponse struct { 524 state protoimpl.MessageState 525 sizeCache protoimpl.SizeCache 526 unknownFields protoimpl.UnknownFields 527 528 // 用户列表:map[userId] = User 529 // @gotags: json:"user_map" 530 UserMap map[int64]*User `protobuf:"bytes,1,rep,name=user_map,json=userMap,proto3" json:"user_map" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 531 } 532 533 func (x *UserMapResponse) Reset() { 534 *x = UserMapResponse{} 535 if protoimpl.UnsafeEnabled { 536 mi := &file_apps_user_pb_user_proto_msgTypes[7] 537 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 538 ms.StoreMessageInfo(mi) 539 } 540 } 541 542 func (x *UserMapResponse) String() string { 543 return protoimpl.X.MessageStringOf(x) 544 } 545 546 func (*UserMapResponse) ProtoMessage() {} 547 548 func (x *UserMapResponse) ProtoReflect() protoreflect.Message { 549 mi := &file_apps_user_pb_user_proto_msgTypes[7] 550 if protoimpl.UnsafeEnabled && x != nil { 551 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 552 if ms.LoadMessageInfo() == nil { 553 ms.StoreMessageInfo(mi) 554 } 555 return ms 556 } 557 return mi.MessageOf(x) 558 } 559 560 // Deprecated: Use UserMapResponse.ProtoReflect.Descriptor instead. 561 func (*UserMapResponse) Descriptor() ([]byte, []int) { 562 return file_apps_user_pb_user_proto_rawDescGZIP(), []int{7} 563 } 564 565 func (x *UserMapResponse) GetUserMap() map[int64]*User { 566 if x != nil { 567 return x.UserMap 568 } 569 return nil 570 } 571 572 var File_apps_user_pb_user_proto protoreflect.FileDescriptor 573 574 var file_apps_user_pb_user_proto_rawDesc = []byte{ 575 0x0a, 0x17, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x70, 0x62, 0x2f, 0x75, 576 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x64, 0x6f, 0x75, 0x73, 0x68, 577 0x65, 0x6e, 0x67, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x22, 0x51, 0x0a, 0x17, 0x4c, 0x6f, 0x67, 0x69, 578 0x6e, 0x41, 0x6e, 0x64, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 579 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 580 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 581 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 582 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x3e, 0x0a, 0x0d, 0x54, 583 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x17, 0x0a, 0x07, 584 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 585 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 586 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x40, 0x0a, 0x0f, 0x55, 587 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 588 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 589 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 590 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x3b, 0x0a, 591 0x10, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 592 0x65, 0x12, 0x27, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 593 0x13, 0x2e, 0x64, 0x6f, 0x75, 0x73, 0x68, 0x65, 0x6e, 0x67, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 594 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x91, 0x04, 0x0a, 0x04, 0x55, 595 0x73, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 596 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 597 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x26, 0x0a, 0x0c, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 598 0x77, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 599 0x0b, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x88, 0x01, 0x01, 0x12, 600 0x2a, 0x0a, 0x0e, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 601 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x48, 0x01, 0x52, 0x0d, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 602 0x77, 0x65, 0x72, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x88, 0x01, 0x01, 0x12, 0x1b, 0x0a, 0x09, 0x69, 603 0x73, 0x5f, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 604 0x69, 0x73, 0x46, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x12, 0x1b, 0x0a, 0x06, 0x61, 0x76, 0x61, 0x74, 605 0x61, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 606 0x61, 0x72, 0x88, 0x01, 0x01, 0x12, 0x2e, 0x0a, 0x10, 0x62, 0x61, 0x63, 0x6b, 0x67, 0x72, 0x6f, 607 0x75, 0x6e, 0x64, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x48, 608 0x03, 0x52, 0x0f, 0x62, 0x61, 0x63, 0x6b, 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x49, 0x6d, 0x61, 609 0x67, 0x65, 0x88, 0x01, 0x01, 0x12, 0x21, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 610 0x72, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x48, 0x04, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 611 0x61, 0x74, 0x75, 0x72, 0x65, 0x88, 0x01, 0x01, 0x12, 0x2c, 0x0a, 0x0f, 0x74, 0x6f, 0x74, 0x61, 612 0x6c, 0x5f, 0x66, 0x61, 0x76, 0x6f, 0x72, 0x69, 0x74, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 613 0x03, 0x48, 0x05, 0x52, 0x0e, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x46, 0x61, 0x76, 0x6f, 0x72, 0x69, 614 0x74, 0x65, 0x64, 0x88, 0x01, 0x01, 0x12, 0x22, 0x0a, 0x0a, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x63, 615 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x48, 0x06, 0x52, 0x09, 0x77, 0x6f, 616 0x72, 0x6b, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x88, 0x01, 0x01, 0x12, 0x2a, 0x0a, 0x0e, 0x66, 0x61, 617 0x76, 0x6f, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x0b, 0x20, 0x01, 618 0x28, 0x03, 0x48, 0x07, 0x52, 0x0d, 0x66, 0x61, 0x76, 0x6f, 0x72, 0x69, 0x74, 0x65, 0x43, 0x6f, 619 0x75, 0x6e, 0x74, 0x88, 0x01, 0x01, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 620 0x77, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x66, 0x6f, 0x6c, 0x6c, 621 0x6f, 0x77, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x61, 622 0x76, 0x61, 0x74, 0x61, 0x72, 0x42, 0x13, 0x0a, 0x11, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x67, 0x72, 623 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x73, 624 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x74, 0x6f, 0x74, 625 0x61, 0x6c, 0x5f, 0x66, 0x61, 0x76, 0x6f, 0x72, 0x69, 0x74, 0x65, 0x64, 0x42, 0x0d, 0x0a, 0x0b, 626 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 627 0x66, 0x61, 0x76, 0x6f, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x50, 628 0x0a, 0x06, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 629 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 630 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 631 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 632 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 633 0x22, 0x41, 0x0a, 0x0e, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x61, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 634 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 635 0x20, 0x03, 0x28, 0x03, 0x52, 0x07, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x73, 0x12, 0x14, 0x0a, 636 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 637 0x6b, 0x65, 0x6e, 0x22, 0xaa, 0x01, 0x0a, 0x0f, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x61, 0x70, 0x52, 638 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x5f, 639 0x6d, 0x61, 0x70, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x64, 0x6f, 0x75, 0x73, 640 0x68, 0x65, 0x6e, 0x67, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x61, 641 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x61, 642 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x75, 0x73, 0x65, 0x72, 0x4d, 0x61, 0x70, 0x1a, 643 0x4f, 0x0a, 0x0c, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 644 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x6b, 0x65, 645 0x79, 0x12, 0x29, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 646 0x32, 0x13, 0x2e, 0x64, 0x6f, 0x75, 0x73, 0x68, 0x65, 0x6e, 0x67, 0x2e, 0x75, 0x73, 0x65, 0x72, 647 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 648 0x32, 0xc1, 0x02, 0x0a, 0x07, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x50, 0x0a, 0x08, 649 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x12, 0x26, 0x2e, 0x64, 0x6f, 0x75, 0x73, 0x68, 650 0x65, 0x6e, 0x67, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x41, 0x6e, 651 0x64, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 652 0x1a, 0x1c, 0x2e, 0x64, 0x6f, 0x75, 0x73, 0x68, 0x65, 0x6e, 0x67, 0x2e, 0x75, 0x73, 0x65, 0x72, 653 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 654 0x0a, 0x05, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x26, 0x2e, 0x64, 0x6f, 0x75, 0x73, 0x68, 0x65, 655 0x6e, 0x67, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x41, 0x6e, 0x64, 656 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 657 0x1c, 0x2e, 0x64, 0x6f, 0x75, 0x73, 0x68, 0x65, 0x6e, 0x67, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 658 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, 659 0x08, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1e, 0x2e, 0x64, 0x6f, 0x75, 0x73, 660 0x68, 0x65, 0x6e, 0x67, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 661 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x64, 0x6f, 0x75, 0x73, 662 0x68, 0x65, 0x6e, 0x67, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 663 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x07, 0x55, 0x73, 664 0x65, 0x72, 0x4d, 0x61, 0x70, 0x12, 0x1d, 0x2e, 0x64, 0x6f, 0x75, 0x73, 0x68, 0x65, 0x6e, 0x67, 665 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x61, 0x70, 0x52, 0x65, 0x71, 666 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x64, 0x6f, 0x75, 0x73, 0x68, 0x65, 0x6e, 0x67, 0x2e, 667 0x75, 0x73, 0x65, 0x72, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x61, 0x70, 0x52, 0x65, 0x73, 0x70, 668 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 669 0x6f, 0x6d, 0x2f, 0x47, 0x6f, 0x2d, 0x54, 0x6f, 0x2d, 0x42, 0x79, 0x74, 0x65, 0x2f, 0x44, 0x6f, 670 0x75, 0x53, 0x68, 0x65, 0x6e, 0x67, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x63, 0x65, 0x6e, 0x74, 671 0x65, 0x72, 0x2f, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 672 0x6f, 0x74, 0x6f, 0x33, 673 } 674 675 var ( 676 file_apps_user_pb_user_proto_rawDescOnce sync.Once 677 file_apps_user_pb_user_proto_rawDescData = file_apps_user_pb_user_proto_rawDesc 678 ) 679 680 func file_apps_user_pb_user_proto_rawDescGZIP() []byte { 681 file_apps_user_pb_user_proto_rawDescOnce.Do(func() { 682 file_apps_user_pb_user_proto_rawDescData = protoimpl.X.CompressGZIP(file_apps_user_pb_user_proto_rawDescData) 683 }) 684 return file_apps_user_pb_user_proto_rawDescData 685 } 686 687 var file_apps_user_pb_user_proto_msgTypes = make([]protoimpl.MessageInfo, 9) 688 var file_apps_user_pb_user_proto_goTypes = []interface{}{ 689 (*LoginAndRegisterRequest)(nil), // 0: dousheng.user.LoginAndRegisterRequest 690 (*TokenResponse)(nil), // 1: dousheng.user.TokenResponse 691 (*UserInfoRequest)(nil), // 2: dousheng.user.UserInfoRequest 692 (*UserInfoResponse)(nil), // 3: dousheng.user.UserInfoResponse 693 (*User)(nil), // 4: dousheng.user.User 694 (*UserPo)(nil), // 5: dousheng.user.UserPo 695 (*UserMapRequest)(nil), // 6: dousheng.user.UserMapRequest 696 (*UserMapResponse)(nil), // 7: dousheng.user.UserMapResponse 697 nil, // 8: dousheng.user.UserMapResponse.UserMapEntry 698 } 699 var file_apps_user_pb_user_proto_depIdxs = []int32{ 700 4, // 0: dousheng.user.UserInfoResponse.user:type_name -> dousheng.user.User 701 8, // 1: dousheng.user.UserMapResponse.user_map:type_name -> dousheng.user.UserMapResponse.UserMapEntry 702 4, // 2: dousheng.user.UserMapResponse.UserMapEntry.value:type_name -> dousheng.user.User 703 0, // 3: dousheng.user.Service.Register:input_type -> dousheng.user.LoginAndRegisterRequest 704 0, // 4: dousheng.user.Service.Login:input_type -> dousheng.user.LoginAndRegisterRequest 705 2, // 5: dousheng.user.Service.UserInfo:input_type -> dousheng.user.UserInfoRequest 706 6, // 6: dousheng.user.Service.UserMap:input_type -> dousheng.user.UserMapRequest 707 1, // 7: dousheng.user.Service.Register:output_type -> dousheng.user.TokenResponse 708 1, // 8: dousheng.user.Service.Login:output_type -> dousheng.user.TokenResponse 709 3, // 9: dousheng.user.Service.UserInfo:output_type -> dousheng.user.UserInfoResponse 710 7, // 10: dousheng.user.Service.UserMap:output_type -> dousheng.user.UserMapResponse 711 7, // [7:11] is the sub-list for method output_type 712 3, // [3:7] is the sub-list for method input_type 713 3, // [3:3] is the sub-list for extension type_name 714 3, // [3:3] is the sub-list for extension extendee 715 0, // [0:3] is the sub-list for field type_name 716 } 717 718 func init() { file_apps_user_pb_user_proto_init() } 719 func file_apps_user_pb_user_proto_init() { 720 if File_apps_user_pb_user_proto != nil { 721 return 722 } 723 if !protoimpl.UnsafeEnabled { 724 file_apps_user_pb_user_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 725 switch v := v.(*LoginAndRegisterRequest); i { 726 case 0: 727 return &v.state 728 case 1: 729 return &v.sizeCache 730 case 2: 731 return &v.unknownFields 732 default: 733 return nil 734 } 735 } 736 file_apps_user_pb_user_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 737 switch v := v.(*TokenResponse); i { 738 case 0: 739 return &v.state 740 case 1: 741 return &v.sizeCache 742 case 2: 743 return &v.unknownFields 744 default: 745 return nil 746 } 747 } 748 file_apps_user_pb_user_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 749 switch v := v.(*UserInfoRequest); i { 750 case 0: 751 return &v.state 752 case 1: 753 return &v.sizeCache 754 case 2: 755 return &v.unknownFields 756 default: 757 return nil 758 } 759 } 760 file_apps_user_pb_user_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 761 switch v := v.(*UserInfoResponse); i { 762 case 0: 763 return &v.state 764 case 1: 765 return &v.sizeCache 766 case 2: 767 return &v.unknownFields 768 default: 769 return nil 770 } 771 } 772 file_apps_user_pb_user_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 773 switch v := v.(*User); i { 774 case 0: 775 return &v.state 776 case 1: 777 return &v.sizeCache 778 case 2: 779 return &v.unknownFields 780 default: 781 return nil 782 } 783 } 784 file_apps_user_pb_user_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 785 switch v := v.(*UserPo); i { 786 case 0: 787 return &v.state 788 case 1: 789 return &v.sizeCache 790 case 2: 791 return &v.unknownFields 792 default: 793 return nil 794 } 795 } 796 file_apps_user_pb_user_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 797 switch v := v.(*UserMapRequest); i { 798 case 0: 799 return &v.state 800 case 1: 801 return &v.sizeCache 802 case 2: 803 return &v.unknownFields 804 default: 805 return nil 806 } 807 } 808 file_apps_user_pb_user_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 809 switch v := v.(*UserMapResponse); i { 810 case 0: 811 return &v.state 812 case 1: 813 return &v.sizeCache 814 case 2: 815 return &v.unknownFields 816 default: 817 return nil 818 } 819 } 820 } 821 file_apps_user_pb_user_proto_msgTypes[4].OneofWrappers = []interface{}{} 822 type x struct{} 823 out := protoimpl.TypeBuilder{ 824 File: protoimpl.DescBuilder{ 825 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 826 RawDescriptor: file_apps_user_pb_user_proto_rawDesc, 827 NumEnums: 0, 828 NumMessages: 9, 829 NumExtensions: 0, 830 NumServices: 1, 831 }, 832 GoTypes: file_apps_user_pb_user_proto_goTypes, 833 DependencyIndexes: file_apps_user_pb_user_proto_depIdxs, 834 MessageInfos: file_apps_user_pb_user_proto_msgTypes, 835 }.Build() 836 File_apps_user_pb_user_proto = out.File 837 file_apps_user_pb_user_proto_rawDesc = nil 838 file_apps_user_pb_user_proto_goTypes = nil 839 file_apps_user_pb_user_proto_depIdxs = nil 840 }