2900 lines
98 KiB
Go
2900 lines
98 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
// versions:
|
||
// protoc-gen-go v1.36.6
|
||
// protoc v5.27.3
|
||
// source: api/proto/user/v1/user.proto
|
||
|
||
package userv1
|
||
|
||
import (
|
||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||
reflect "reflect"
|
||
sync "sync"
|
||
unsafe "unsafe"
|
||
)
|
||
|
||
const (
|
||
// Verify that this generated code is sufficiently up-to-date.
|
||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||
)
|
||
|
||
// UserStatus 表达用户主状态,业务服务只消费稳定枚举。
|
||
type UserStatus int32
|
||
|
||
const (
|
||
UserStatus_USER_STATUS_UNSPECIFIED UserStatus = 0
|
||
UserStatus_USER_STATUS_ACTIVE UserStatus = 1
|
||
UserStatus_USER_STATUS_DISABLED UserStatus = 2
|
||
UserStatus_USER_STATUS_BANNED UserStatus = 3
|
||
)
|
||
|
||
// Enum value maps for UserStatus.
|
||
var (
|
||
UserStatus_name = map[int32]string{
|
||
0: "USER_STATUS_UNSPECIFIED",
|
||
1: "USER_STATUS_ACTIVE",
|
||
2: "USER_STATUS_DISABLED",
|
||
3: "USER_STATUS_BANNED",
|
||
}
|
||
UserStatus_value = map[string]int32{
|
||
"USER_STATUS_UNSPECIFIED": 0,
|
||
"USER_STATUS_ACTIVE": 1,
|
||
"USER_STATUS_DISABLED": 2,
|
||
"USER_STATUS_BANNED": 3,
|
||
}
|
||
)
|
||
|
||
func (x UserStatus) Enum() *UserStatus {
|
||
p := new(UserStatus)
|
||
*p = x
|
||
return p
|
||
}
|
||
|
||
func (x UserStatus) String() string {
|
||
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
||
}
|
||
|
||
func (UserStatus) Descriptor() protoreflect.EnumDescriptor {
|
||
return file_api_proto_user_v1_user_proto_enumTypes[0].Descriptor()
|
||
}
|
||
|
||
func (UserStatus) Type() protoreflect.EnumType {
|
||
return &file_api_proto_user_v1_user_proto_enumTypes[0]
|
||
}
|
||
|
||
func (x UserStatus) Number() protoreflect.EnumNumber {
|
||
return protoreflect.EnumNumber(x)
|
||
}
|
||
|
||
// Deprecated: Use UserStatus.Descriptor instead.
|
||
func (UserStatus) EnumDescriptor() ([]byte, []int) {
|
||
return file_api_proto_user_v1_user_proto_rawDescGZIP(), []int{0}
|
||
}
|
||
|
||
// RequestMeta 是 user-service 所有内部 RPC 的最小追踪元信息。
|
||
type RequestMeta struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
|
||
Caller string `protobuf:"bytes,2,opt,name=caller,proto3" json:"caller,omitempty"`
|
||
GatewayNodeId string `protobuf:"bytes,3,opt,name=gateway_node_id,json=gatewayNodeId,proto3" json:"gateway_node_id,omitempty"`
|
||
SentAtMs int64 `protobuf:"varint,4,opt,name=sent_at_ms,json=sentAtMs,proto3" json:"sent_at_ms,omitempty"`
|
||
DeviceId string `protobuf:"bytes,5,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
|
||
ClientIp string `protobuf:"bytes,6,opt,name=client_ip,json=clientIp,proto3" json:"client_ip,omitempty"`
|
||
UserAgent string `protobuf:"bytes,7,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"`
|
||
CountryByIp string `protobuf:"bytes,8,opt,name=country_by_ip,json=countryByIp,proto3" json:"country_by_ip,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *RequestMeta) Reset() {
|
||
*x = RequestMeta{}
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[0]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *RequestMeta) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*RequestMeta) ProtoMessage() {}
|
||
|
||
func (x *RequestMeta) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[0]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use RequestMeta.ProtoReflect.Descriptor instead.
|
||
func (*RequestMeta) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_user_v1_user_proto_rawDescGZIP(), []int{0}
|
||
}
|
||
|
||
func (x *RequestMeta) GetRequestId() string {
|
||
if x != nil {
|
||
return x.RequestId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *RequestMeta) GetCaller() string {
|
||
if x != nil {
|
||
return x.Caller
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *RequestMeta) GetGatewayNodeId() string {
|
||
if x != nil {
|
||
return x.GatewayNodeId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *RequestMeta) GetSentAtMs() int64 {
|
||
if x != nil {
|
||
return x.SentAtMs
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *RequestMeta) GetDeviceId() string {
|
||
if x != nil {
|
||
return x.DeviceId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *RequestMeta) GetClientIp() string {
|
||
if x != nil {
|
||
return x.ClientIp
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *RequestMeta) GetUserAgent() string {
|
||
if x != nil {
|
||
return x.UserAgent
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *RequestMeta) GetCountryByIp() string {
|
||
if x != nil {
|
||
return x.CountryByIp
|
||
}
|
||
return ""
|
||
}
|
||
|
||
// User 是用户主数据投影,包含稳定身份、当前短号和基础资料。
|
||
type User struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||
Status UserStatus `protobuf:"varint,2,opt,name=status,proto3,enum=hyapp.user.v1.UserStatus" json:"status,omitempty"`
|
||
CreatedAtMs int64 `protobuf:"varint,3,opt,name=created_at_ms,json=createdAtMs,proto3" json:"created_at_ms,omitempty"`
|
||
UpdatedAtMs int64 `protobuf:"varint,4,opt,name=updated_at_ms,json=updatedAtMs,proto3" json:"updated_at_ms,omitempty"`
|
||
DisplayUserId string `protobuf:"bytes,5,opt,name=display_user_id,json=displayUserId,proto3" json:"display_user_id,omitempty"`
|
||
DefaultDisplayUserId string `protobuf:"bytes,6,opt,name=default_display_user_id,json=defaultDisplayUserId,proto3" json:"default_display_user_id,omitempty"`
|
||
DisplayUserIdKind string `protobuf:"bytes,7,opt,name=display_user_id_kind,json=displayUserIdKind,proto3" json:"display_user_id_kind,omitempty"`
|
||
DisplayUserIdExpiresAtMs int64 `protobuf:"varint,8,opt,name=display_user_id_expires_at_ms,json=displayUserIdExpiresAtMs,proto3" json:"display_user_id_expires_at_ms,omitempty"`
|
||
Username string `protobuf:"bytes,9,opt,name=username,proto3" json:"username,omitempty"`
|
||
Gender string `protobuf:"bytes,10,opt,name=gender,proto3" json:"gender,omitempty"`
|
||
Country string `protobuf:"bytes,11,opt,name=country,proto3" json:"country,omitempty"`
|
||
Avatar string `protobuf:"bytes,12,opt,name=avatar,proto3" json:"avatar,omitempty"`
|
||
Birth string `protobuf:"bytes,13,opt,name=birth,proto3" json:"birth,omitempty"`
|
||
Language string `protobuf:"bytes,14,opt,name=language,proto3" json:"language,omitempty"`
|
||
CountryId int64 `protobuf:"varint,15,opt,name=country_id,json=countryId,proto3" json:"country_id,omitempty"`
|
||
CountryName string `protobuf:"bytes,16,opt,name=country_name,json=countryName,proto3" json:"country_name,omitempty"`
|
||
CountryDisplayName string `protobuf:"bytes,17,opt,name=country_display_name,json=countryDisplayName,proto3" json:"country_display_name,omitempty"`
|
||
RegionId int64 `protobuf:"varint,18,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"`
|
||
RegionCode string `protobuf:"bytes,19,opt,name=region_code,json=regionCode,proto3" json:"region_code,omitempty"`
|
||
RegionName string `protobuf:"bytes,20,opt,name=region_name,json=regionName,proto3" json:"region_name,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *User) Reset() {
|
||
*x = User{}
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[1]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *User) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*User) ProtoMessage() {}
|
||
|
||
func (x *User) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[1]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use User.ProtoReflect.Descriptor instead.
|
||
func (*User) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_user_v1_user_proto_rawDescGZIP(), []int{1}
|
||
}
|
||
|
||
func (x *User) GetUserId() int64 {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *User) GetStatus() UserStatus {
|
||
if x != nil {
|
||
return x.Status
|
||
}
|
||
return UserStatus_USER_STATUS_UNSPECIFIED
|
||
}
|
||
|
||
func (x *User) GetCreatedAtMs() int64 {
|
||
if x != nil {
|
||
return x.CreatedAtMs
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *User) GetUpdatedAtMs() int64 {
|
||
if x != nil {
|
||
return x.UpdatedAtMs
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *User) GetDisplayUserId() string {
|
||
if x != nil {
|
||
return x.DisplayUserId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *User) GetDefaultDisplayUserId() string {
|
||
if x != nil {
|
||
return x.DefaultDisplayUserId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *User) GetDisplayUserIdKind() string {
|
||
if x != nil {
|
||
return x.DisplayUserIdKind
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *User) GetDisplayUserIdExpiresAtMs() int64 {
|
||
if x != nil {
|
||
return x.DisplayUserIdExpiresAtMs
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *User) GetUsername() string {
|
||
if x != nil {
|
||
return x.Username
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *User) GetGender() string {
|
||
if x != nil {
|
||
return x.Gender
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *User) GetCountry() string {
|
||
if x != nil {
|
||
return x.Country
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *User) GetAvatar() string {
|
||
if x != nil {
|
||
return x.Avatar
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *User) GetBirth() string {
|
||
if x != nil {
|
||
return x.Birth
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *User) GetLanguage() string {
|
||
if x != nil {
|
||
return x.Language
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *User) GetCountryId() int64 {
|
||
if x != nil {
|
||
return x.CountryId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *User) GetCountryName() string {
|
||
if x != nil {
|
||
return x.CountryName
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *User) GetCountryDisplayName() string {
|
||
if x != nil {
|
||
return x.CountryDisplayName
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *User) GetRegionId() int64 {
|
||
if x != nil {
|
||
return x.RegionId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *User) GetRegionCode() string {
|
||
if x != nil {
|
||
return x.RegionCode
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *User) GetRegionName() string {
|
||
if x != nil {
|
||
return x.RegionName
|
||
}
|
||
return ""
|
||
}
|
||
|
||
// GetUserRequest 查询单个用户主状态。
|
||
type GetUserRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *GetUserRequest) Reset() {
|
||
*x = GetUserRequest{}
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[2]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *GetUserRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*GetUserRequest) ProtoMessage() {}
|
||
|
||
func (x *GetUserRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[2]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.
|
||
func (*GetUserRequest) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_user_v1_user_proto_rawDescGZIP(), []int{2}
|
||
}
|
||
|
||
func (x *GetUserRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *GetUserRequest) GetUserId() int64 {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// GetUserResponse 返回单个用户主状态。
|
||
type GetUserResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *GetUserResponse) Reset() {
|
||
*x = GetUserResponse{}
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[3]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *GetUserResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*GetUserResponse) ProtoMessage() {}
|
||
|
||
func (x *GetUserResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[3]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.
|
||
func (*GetUserResponse) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_user_v1_user_proto_rawDescGZIP(), []int{3}
|
||
}
|
||
|
||
func (x *GetUserResponse) GetUser() *User {
|
||
if x != nil {
|
||
return x.User
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// BatchGetUsersRequest 批量查询用户主状态。
|
||
type BatchGetUsersRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
UserIds []int64 `protobuf:"varint,2,rep,packed,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *BatchGetUsersRequest) Reset() {
|
||
*x = BatchGetUsersRequest{}
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[4]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *BatchGetUsersRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*BatchGetUsersRequest) ProtoMessage() {}
|
||
|
||
func (x *BatchGetUsersRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[4]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use BatchGetUsersRequest.ProtoReflect.Descriptor instead.
|
||
func (*BatchGetUsersRequest) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_user_v1_user_proto_rawDescGZIP(), []int{4}
|
||
}
|
||
|
||
func (x *BatchGetUsersRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *BatchGetUsersRequest) GetUserIds() []int64 {
|
||
if x != nil {
|
||
return x.UserIds
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// BatchGetUsersResponse 返回按 user_id 索引的用户主状态。
|
||
type BatchGetUsersResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Users map[int64]*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *BatchGetUsersResponse) Reset() {
|
||
*x = BatchGetUsersResponse{}
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[5]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *BatchGetUsersResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*BatchGetUsersResponse) ProtoMessage() {}
|
||
|
||
func (x *BatchGetUsersResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[5]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use BatchGetUsersResponse.ProtoReflect.Descriptor instead.
|
||
func (*BatchGetUsersResponse) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_user_v1_user_proto_rawDescGZIP(), []int{5}
|
||
}
|
||
|
||
func (x *BatchGetUsersResponse) GetUsers() map[int64]*User {
|
||
if x != nil {
|
||
return x.Users
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// UpdateUserProfileRequest 修改用户可自助维护的基础资料。
|
||
type UpdateUserProfileRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||
Username *string `protobuf:"bytes,3,opt,name=username,proto3,oneof" json:"username,omitempty"`
|
||
Avatar *string `protobuf:"bytes,4,opt,name=avatar,proto3,oneof" json:"avatar,omitempty"`
|
||
Birth *string `protobuf:"bytes,5,opt,name=birth,proto3,oneof" json:"birth,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *UpdateUserProfileRequest) Reset() {
|
||
*x = UpdateUserProfileRequest{}
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[6]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *UpdateUserProfileRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*UpdateUserProfileRequest) ProtoMessage() {}
|
||
|
||
func (x *UpdateUserProfileRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[6]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use UpdateUserProfileRequest.ProtoReflect.Descriptor instead.
|
||
func (*UpdateUserProfileRequest) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_user_v1_user_proto_rawDescGZIP(), []int{6}
|
||
}
|
||
|
||
func (x *UpdateUserProfileRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *UpdateUserProfileRequest) GetUserId() int64 {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *UpdateUserProfileRequest) GetUsername() string {
|
||
if x != nil && x.Username != nil {
|
||
return *x.Username
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *UpdateUserProfileRequest) GetAvatar() string {
|
||
if x != nil && x.Avatar != nil {
|
||
return *x.Avatar
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *UpdateUserProfileRequest) GetBirth() string {
|
||
if x != nil && x.Birth != nil {
|
||
return *x.Birth
|
||
}
|
||
return ""
|
||
}
|
||
|
||
// UpdateUserProfileResponse 返回更新后的用户资料投影。
|
||
type UpdateUserProfileResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *UpdateUserProfileResponse) Reset() {
|
||
*x = UpdateUserProfileResponse{}
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[7]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *UpdateUserProfileResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*UpdateUserProfileResponse) ProtoMessage() {}
|
||
|
||
func (x *UpdateUserProfileResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[7]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use UpdateUserProfileResponse.ProtoReflect.Descriptor instead.
|
||
func (*UpdateUserProfileResponse) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_user_v1_user_proto_rawDescGZIP(), []int{7}
|
||
}
|
||
|
||
func (x *UpdateUserProfileResponse) GetUser() *User {
|
||
if x != nil {
|
||
return x.User
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// ChangeUserCountryRequest 单独修改用户国家;该字段有冷却期和变更日志。
|
||
type ChangeUserCountryRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||
Country string `protobuf:"bytes,3,opt,name=country,proto3" json:"country,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ChangeUserCountryRequest) Reset() {
|
||
*x = ChangeUserCountryRequest{}
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[8]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ChangeUserCountryRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ChangeUserCountryRequest) ProtoMessage() {}
|
||
|
||
func (x *ChangeUserCountryRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[8]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use ChangeUserCountryRequest.ProtoReflect.Descriptor instead.
|
||
func (*ChangeUserCountryRequest) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_user_v1_user_proto_rawDescGZIP(), []int{8}
|
||
}
|
||
|
||
func (x *ChangeUserCountryRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *ChangeUserCountryRequest) GetUserId() int64 {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ChangeUserCountryRequest) GetCountry() string {
|
||
if x != nil {
|
||
return x.Country
|
||
}
|
||
return ""
|
||
}
|
||
|
||
// ChangeUserCountryResponse 返回更新后的用户资料和下一次可修改时间。
|
||
type ChangeUserCountryResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
||
NextChangeAllowedAtMs int64 `protobuf:"varint,2,opt,name=next_change_allowed_at_ms,json=nextChangeAllowedAtMs,proto3" json:"next_change_allowed_at_ms,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ChangeUserCountryResponse) Reset() {
|
||
*x = ChangeUserCountryResponse{}
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[9]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ChangeUserCountryResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ChangeUserCountryResponse) ProtoMessage() {}
|
||
|
||
func (x *ChangeUserCountryResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[9]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use ChangeUserCountryResponse.ProtoReflect.Descriptor instead.
|
||
func (*ChangeUserCountryResponse) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_user_v1_user_proto_rawDescGZIP(), []int{9}
|
||
}
|
||
|
||
func (x *ChangeUserCountryResponse) GetUser() *User {
|
||
if x != nil {
|
||
return x.User
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *ChangeUserCountryResponse) GetNextChangeAllowedAtMs() int64 {
|
||
if x != nil {
|
||
return x.NextChangeAllowedAtMs
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// Country 是国家主数据投影,客户端和普通用户流程只提交 country_code。
|
||
type Country struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
CountryId int64 `protobuf:"varint,1,opt,name=country_id,json=countryId,proto3" json:"country_id,omitempty"`
|
||
CountryName string `protobuf:"bytes,2,opt,name=country_name,json=countryName,proto3" json:"country_name,omitempty"`
|
||
CountryCode string `protobuf:"bytes,3,opt,name=country_code,json=countryCode,proto3" json:"country_code,omitempty"`
|
||
CountryDisplayName string `protobuf:"bytes,4,opt,name=country_display_name,json=countryDisplayName,proto3" json:"country_display_name,omitempty"`
|
||
Status string `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"`
|
||
SortOrder int32 `protobuf:"varint,6,opt,name=sort_order,json=sortOrder,proto3" json:"sort_order,omitempty"`
|
||
CreatedAtMs int64 `protobuf:"varint,7,opt,name=created_at_ms,json=createdAtMs,proto3" json:"created_at_ms,omitempty"`
|
||
UpdatedAtMs int64 `protobuf:"varint,8,opt,name=updated_at_ms,json=updatedAtMs,proto3" json:"updated_at_ms,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *Country) Reset() {
|
||
*x = Country{}
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[10]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *Country) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*Country) ProtoMessage() {}
|
||
|
||
func (x *Country) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[10]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use Country.ProtoReflect.Descriptor instead.
|
||
func (*Country) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_user_v1_user_proto_rawDescGZIP(), []int{10}
|
||
}
|
||
|
||
func (x *Country) GetCountryId() int64 {
|
||
if x != nil {
|
||
return x.CountryId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *Country) GetCountryName() string {
|
||
if x != nil {
|
||
return x.CountryName
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Country) GetCountryCode() string {
|
||
if x != nil {
|
||
return x.CountryCode
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Country) GetCountryDisplayName() string {
|
||
if x != nil {
|
||
return x.CountryDisplayName
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Country) GetStatus() string {
|
||
if x != nil {
|
||
return x.Status
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Country) GetSortOrder() int32 {
|
||
if x != nil {
|
||
return x.SortOrder
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *Country) GetCreatedAtMs() int64 {
|
||
if x != nil {
|
||
return x.CreatedAtMs
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *Country) GetUpdatedAtMs() int64 {
|
||
if x != nil {
|
||
return x.UpdatedAtMs
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// Region 是区域主数据投影,countries 只包含当前 active 国家码。
|
||
type Region struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
RegionId int64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"`
|
||
RegionCode string `protobuf:"bytes,2,opt,name=region_code,json=regionCode,proto3" json:"region_code,omitempty"`
|
||
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
|
||
Status string `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"`
|
||
Countries []string `protobuf:"bytes,5,rep,name=countries,proto3" json:"countries,omitempty"`
|
||
SortOrder int32 `protobuf:"varint,6,opt,name=sort_order,json=sortOrder,proto3" json:"sort_order,omitempty"`
|
||
CreatedAtMs int64 `protobuf:"varint,7,opt,name=created_at_ms,json=createdAtMs,proto3" json:"created_at_ms,omitempty"`
|
||
UpdatedAtMs int64 `protobuf:"varint,8,opt,name=updated_at_ms,json=updatedAtMs,proto3" json:"updated_at_ms,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *Region) Reset() {
|
||
*x = Region{}
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[11]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *Region) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*Region) ProtoMessage() {}
|
||
|
||
func (x *Region) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[11]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use Region.ProtoReflect.Descriptor instead.
|
||
func (*Region) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_user_v1_user_proto_rawDescGZIP(), []int{11}
|
||
}
|
||
|
||
func (x *Region) GetRegionId() int64 {
|
||
if x != nil {
|
||
return x.RegionId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *Region) GetRegionCode() string {
|
||
if x != nil {
|
||
return x.RegionCode
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Region) GetName() string {
|
||
if x != nil {
|
||
return x.Name
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Region) GetStatus() string {
|
||
if x != nil {
|
||
return x.Status
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Region) GetCountries() []string {
|
||
if x != nil {
|
||
return x.Countries
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *Region) GetSortOrder() int32 {
|
||
if x != nil {
|
||
return x.SortOrder
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *Region) GetCreatedAtMs() int64 {
|
||
if x != nil {
|
||
return x.CreatedAtMs
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *Region) GetUpdatedAtMs() int64 {
|
||
if x != nil {
|
||
return x.UpdatedAtMs
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// CreateCountryRequest 创建国家主数据;country_code 创建后不可变。
|
||
type CreateCountryRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
CountryName string `protobuf:"bytes,2,opt,name=country_name,json=countryName,proto3" json:"country_name,omitempty"`
|
||
CountryCode string `protobuf:"bytes,3,opt,name=country_code,json=countryCode,proto3" json:"country_code,omitempty"`
|
||
CountryDisplayName string `protobuf:"bytes,4,opt,name=country_display_name,json=countryDisplayName,proto3" json:"country_display_name,omitempty"`
|
||
SortOrder int32 `protobuf:"varint,5,opt,name=sort_order,json=sortOrder,proto3" json:"sort_order,omitempty"`
|
||
OperatorUserId int64 `protobuf:"varint,6,opt,name=operator_user_id,json=operatorUserId,proto3" json:"operator_user_id,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CreateCountryRequest) Reset() {
|
||
*x = CreateCountryRequest{}
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[12]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CreateCountryRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CreateCountryRequest) ProtoMessage() {}
|
||
|
||
func (x *CreateCountryRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[12]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use CreateCountryRequest.ProtoReflect.Descriptor instead.
|
||
func (*CreateCountryRequest) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_user_v1_user_proto_rawDescGZIP(), []int{12}
|
||
}
|
||
|
||
func (x *CreateCountryRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *CreateCountryRequest) GetCountryName() string {
|
||
if x != nil {
|
||
return x.CountryName
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *CreateCountryRequest) GetCountryCode() string {
|
||
if x != nil {
|
||
return x.CountryCode
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *CreateCountryRequest) GetCountryDisplayName() string {
|
||
if x != nil {
|
||
return x.CountryDisplayName
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *CreateCountryRequest) GetSortOrder() int32 {
|
||
if x != nil {
|
||
return x.SortOrder
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *CreateCountryRequest) GetOperatorUserId() int64 {
|
||
if x != nil {
|
||
return x.OperatorUserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
type ListCountriesRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ListCountriesRequest) Reset() {
|
||
*x = ListCountriesRequest{}
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[13]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ListCountriesRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ListCountriesRequest) ProtoMessage() {}
|
||
|
||
func (x *ListCountriesRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[13]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use ListCountriesRequest.ProtoReflect.Descriptor instead.
|
||
func (*ListCountriesRequest) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_user_v1_user_proto_rawDescGZIP(), []int{13}
|
||
}
|
||
|
||
func (x *ListCountriesRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *ListCountriesRequest) GetStatus() string {
|
||
if x != nil {
|
||
return x.Status
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type ListCountriesResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Countries []*Country `protobuf:"bytes,1,rep,name=countries,proto3" json:"countries,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ListCountriesResponse) Reset() {
|
||
*x = ListCountriesResponse{}
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[14]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ListCountriesResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ListCountriesResponse) ProtoMessage() {}
|
||
|
||
func (x *ListCountriesResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[14]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use ListCountriesResponse.ProtoReflect.Descriptor instead.
|
||
func (*ListCountriesResponse) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_user_v1_user_proto_rawDescGZIP(), []int{14}
|
||
}
|
||
|
||
func (x *ListCountriesResponse) GetCountries() []*Country {
|
||
if x != nil {
|
||
return x.Countries
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// UpdateCountryRequest 只修改国家展示字段,不修改 country_code。
|
||
type UpdateCountryRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
CountryId int64 `protobuf:"varint,2,opt,name=country_id,json=countryId,proto3" json:"country_id,omitempty"`
|
||
CountryName string `protobuf:"bytes,3,opt,name=country_name,json=countryName,proto3" json:"country_name,omitempty"`
|
||
CountryDisplayName string `protobuf:"bytes,4,opt,name=country_display_name,json=countryDisplayName,proto3" json:"country_display_name,omitempty"`
|
||
SortOrder int32 `protobuf:"varint,5,opt,name=sort_order,json=sortOrder,proto3" json:"sort_order,omitempty"`
|
||
OperatorUserId int64 `protobuf:"varint,6,opt,name=operator_user_id,json=operatorUserId,proto3" json:"operator_user_id,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *UpdateCountryRequest) Reset() {
|
||
*x = UpdateCountryRequest{}
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[15]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *UpdateCountryRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*UpdateCountryRequest) ProtoMessage() {}
|
||
|
||
func (x *UpdateCountryRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[15]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use UpdateCountryRequest.ProtoReflect.Descriptor instead.
|
||
func (*UpdateCountryRequest) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_user_v1_user_proto_rawDescGZIP(), []int{15}
|
||
}
|
||
|
||
func (x *UpdateCountryRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *UpdateCountryRequest) GetCountryId() int64 {
|
||
if x != nil {
|
||
return x.CountryId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *UpdateCountryRequest) GetCountryName() string {
|
||
if x != nil {
|
||
return x.CountryName
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *UpdateCountryRequest) GetCountryDisplayName() string {
|
||
if x != nil {
|
||
return x.CountryDisplayName
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *UpdateCountryRequest) GetSortOrder() int32 {
|
||
if x != nil {
|
||
return x.SortOrder
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *UpdateCountryRequest) GetOperatorUserId() int64 {
|
||
if x != nil {
|
||
return x.OperatorUserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
type DisableCountryRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
CountryId int64 `protobuf:"varint,2,opt,name=country_id,json=countryId,proto3" json:"country_id,omitempty"`
|
||
OperatorUserId int64 `protobuf:"varint,3,opt,name=operator_user_id,json=operatorUserId,proto3" json:"operator_user_id,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *DisableCountryRequest) Reset() {
|
||
*x = DisableCountryRequest{}
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[16]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *DisableCountryRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*DisableCountryRequest) ProtoMessage() {}
|
||
|
||
func (x *DisableCountryRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[16]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use DisableCountryRequest.ProtoReflect.Descriptor instead.
|
||
func (*DisableCountryRequest) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_user_v1_user_proto_rawDescGZIP(), []int{16}
|
||
}
|
||
|
||
func (x *DisableCountryRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *DisableCountryRequest) GetCountryId() int64 {
|
||
if x != nil {
|
||
return x.CountryId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *DisableCountryRequest) GetOperatorUserId() int64 {
|
||
if x != nil {
|
||
return x.OperatorUserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
type CountryResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Country *Country `protobuf:"bytes,1,opt,name=country,proto3" json:"country,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CountryResponse) Reset() {
|
||
*x = CountryResponse{}
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[17]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CountryResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CountryResponse) ProtoMessage() {}
|
||
|
||
func (x *CountryResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[17]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use CountryResponse.ProtoReflect.Descriptor instead.
|
||
func (*CountryResponse) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_user_v1_user_proto_rawDescGZIP(), []int{17}
|
||
}
|
||
|
||
func (x *CountryResponse) GetCountry() *Country {
|
||
if x != nil {
|
||
return x.Country
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// CreateRegionRequest 创建区域并配置 active 国家列表。
|
||
type CreateRegionRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
RegionCode string `protobuf:"bytes,2,opt,name=region_code,json=regionCode,proto3" json:"region_code,omitempty"`
|
||
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
|
||
Countries []string `protobuf:"bytes,4,rep,name=countries,proto3" json:"countries,omitempty"`
|
||
SortOrder int32 `protobuf:"varint,5,opt,name=sort_order,json=sortOrder,proto3" json:"sort_order,omitempty"`
|
||
OperatorUserId int64 `protobuf:"varint,6,opt,name=operator_user_id,json=operatorUserId,proto3" json:"operator_user_id,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CreateRegionRequest) Reset() {
|
||
*x = CreateRegionRequest{}
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[18]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CreateRegionRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CreateRegionRequest) ProtoMessage() {}
|
||
|
||
func (x *CreateRegionRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[18]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use CreateRegionRequest.ProtoReflect.Descriptor instead.
|
||
func (*CreateRegionRequest) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_user_v1_user_proto_rawDescGZIP(), []int{18}
|
||
}
|
||
|
||
func (x *CreateRegionRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *CreateRegionRequest) GetRegionCode() string {
|
||
if x != nil {
|
||
return x.RegionCode
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *CreateRegionRequest) GetName() string {
|
||
if x != nil {
|
||
return x.Name
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *CreateRegionRequest) GetCountries() []string {
|
||
if x != nil {
|
||
return x.Countries
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *CreateRegionRequest) GetSortOrder() int32 {
|
||
if x != nil {
|
||
return x.SortOrder
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *CreateRegionRequest) GetOperatorUserId() int64 {
|
||
if x != nil {
|
||
return x.OperatorUserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
type ListRegionsRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ListRegionsRequest) Reset() {
|
||
*x = ListRegionsRequest{}
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[19]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ListRegionsRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ListRegionsRequest) ProtoMessage() {}
|
||
|
||
func (x *ListRegionsRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[19]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use ListRegionsRequest.ProtoReflect.Descriptor instead.
|
||
func (*ListRegionsRequest) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_user_v1_user_proto_rawDescGZIP(), []int{19}
|
||
}
|
||
|
||
func (x *ListRegionsRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *ListRegionsRequest) GetStatus() string {
|
||
if x != nil {
|
||
return x.Status
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type ListRegionsResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Regions []*Region `protobuf:"bytes,1,rep,name=regions,proto3" json:"regions,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ListRegionsResponse) Reset() {
|
||
*x = ListRegionsResponse{}
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[20]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ListRegionsResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ListRegionsResponse) ProtoMessage() {}
|
||
|
||
func (x *ListRegionsResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[20]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use ListRegionsResponse.ProtoReflect.Descriptor instead.
|
||
func (*ListRegionsResponse) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_user_v1_user_proto_rawDescGZIP(), []int{20}
|
||
}
|
||
|
||
func (x *ListRegionsResponse) GetRegions() []*Region {
|
||
if x != nil {
|
||
return x.Regions
|
||
}
|
||
return nil
|
||
}
|
||
|
||
type GetRegionRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
RegionId int64 `protobuf:"varint,2,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *GetRegionRequest) Reset() {
|
||
*x = GetRegionRequest{}
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[21]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *GetRegionRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*GetRegionRequest) ProtoMessage() {}
|
||
|
||
func (x *GetRegionRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[21]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use GetRegionRequest.ProtoReflect.Descriptor instead.
|
||
func (*GetRegionRequest) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_user_v1_user_proto_rawDescGZIP(), []int{21}
|
||
}
|
||
|
||
func (x *GetRegionRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *GetRegionRequest) GetRegionId() int64 {
|
||
if x != nil {
|
||
return x.RegionId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// UpdateRegionRequest 只修改区域展示字段,不修改 countries。
|
||
type UpdateRegionRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
RegionId int64 `protobuf:"varint,2,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"`
|
||
RegionCode string `protobuf:"bytes,3,opt,name=region_code,json=regionCode,proto3" json:"region_code,omitempty"`
|
||
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
|
||
SortOrder int32 `protobuf:"varint,5,opt,name=sort_order,json=sortOrder,proto3" json:"sort_order,omitempty"`
|
||
OperatorUserId int64 `protobuf:"varint,6,opt,name=operator_user_id,json=operatorUserId,proto3" json:"operator_user_id,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *UpdateRegionRequest) Reset() {
|
||
*x = UpdateRegionRequest{}
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[22]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *UpdateRegionRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*UpdateRegionRequest) ProtoMessage() {}
|
||
|
||
func (x *UpdateRegionRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[22]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use UpdateRegionRequest.ProtoReflect.Descriptor instead.
|
||
func (*UpdateRegionRequest) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_user_v1_user_proto_rawDescGZIP(), []int{22}
|
||
}
|
||
|
||
func (x *UpdateRegionRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *UpdateRegionRequest) GetRegionId() int64 {
|
||
if x != nil {
|
||
return x.RegionId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *UpdateRegionRequest) GetRegionCode() string {
|
||
if x != nil {
|
||
return x.RegionCode
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *UpdateRegionRequest) GetName() string {
|
||
if x != nil {
|
||
return x.Name
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *UpdateRegionRequest) GetSortOrder() int32 {
|
||
if x != nil {
|
||
return x.SortOrder
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *UpdateRegionRequest) GetOperatorUserId() int64 {
|
||
if x != nil {
|
||
return x.OperatorUserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
type ReplaceRegionCountriesRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
RegionId int64 `protobuf:"varint,2,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"`
|
||
Countries []string `protobuf:"bytes,3,rep,name=countries,proto3" json:"countries,omitempty"`
|
||
OperatorUserId int64 `protobuf:"varint,4,opt,name=operator_user_id,json=operatorUserId,proto3" json:"operator_user_id,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ReplaceRegionCountriesRequest) Reset() {
|
||
*x = ReplaceRegionCountriesRequest{}
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[23]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ReplaceRegionCountriesRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ReplaceRegionCountriesRequest) ProtoMessage() {}
|
||
|
||
func (x *ReplaceRegionCountriesRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[23]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use ReplaceRegionCountriesRequest.ProtoReflect.Descriptor instead.
|
||
func (*ReplaceRegionCountriesRequest) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_user_v1_user_proto_rawDescGZIP(), []int{23}
|
||
}
|
||
|
||
func (x *ReplaceRegionCountriesRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *ReplaceRegionCountriesRequest) GetRegionId() int64 {
|
||
if x != nil {
|
||
return x.RegionId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ReplaceRegionCountriesRequest) GetCountries() []string {
|
||
if x != nil {
|
||
return x.Countries
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *ReplaceRegionCountriesRequest) GetOperatorUserId() int64 {
|
||
if x != nil {
|
||
return x.OperatorUserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
type DisableRegionRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
RegionId int64 `protobuf:"varint,2,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"`
|
||
OperatorUserId int64 `protobuf:"varint,3,opt,name=operator_user_id,json=operatorUserId,proto3" json:"operator_user_id,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *DisableRegionRequest) Reset() {
|
||
*x = DisableRegionRequest{}
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[24]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *DisableRegionRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*DisableRegionRequest) ProtoMessage() {}
|
||
|
||
func (x *DisableRegionRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[24]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use DisableRegionRequest.ProtoReflect.Descriptor instead.
|
||
func (*DisableRegionRequest) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_user_v1_user_proto_rawDescGZIP(), []int{24}
|
||
}
|
||
|
||
func (x *DisableRegionRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *DisableRegionRequest) GetRegionId() int64 {
|
||
if x != nil {
|
||
return x.RegionId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *DisableRegionRequest) GetOperatorUserId() int64 {
|
||
if x != nil {
|
||
return x.OperatorUserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
type RegionResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Region *Region `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *RegionResponse) Reset() {
|
||
*x = RegionResponse{}
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[25]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *RegionResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*RegionResponse) ProtoMessage() {}
|
||
|
||
func (x *RegionResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[25]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use RegionResponse.ProtoReflect.Descriptor instead.
|
||
func (*RegionResponse) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_user_v1_user_proto_rawDescGZIP(), []int{25}
|
||
}
|
||
|
||
func (x *RegionResponse) GetRegion() *Region {
|
||
if x != nil {
|
||
return x.Region
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// UserIdentity 是 user_id 和当前 active display_user_id 的绑定投影。
|
||
type UserIdentity struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||
DisplayUserId string `protobuf:"bytes,2,opt,name=display_user_id,json=displayUserId,proto3" json:"display_user_id,omitempty"`
|
||
Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
|
||
DefaultDisplayUserId string `protobuf:"bytes,4,opt,name=default_display_user_id,json=defaultDisplayUserId,proto3" json:"default_display_user_id,omitempty"`
|
||
DisplayUserIdKind string `protobuf:"bytes,5,opt,name=display_user_id_kind,json=displayUserIdKind,proto3" json:"display_user_id_kind,omitempty"`
|
||
DisplayUserIdExpiresAtMs int64 `protobuf:"varint,6,opt,name=display_user_id_expires_at_ms,json=displayUserIdExpiresAtMs,proto3" json:"display_user_id_expires_at_ms,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *UserIdentity) Reset() {
|
||
*x = UserIdentity{}
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[26]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *UserIdentity) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*UserIdentity) ProtoMessage() {}
|
||
|
||
func (x *UserIdentity) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[26]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use UserIdentity.ProtoReflect.Descriptor instead.
|
||
func (*UserIdentity) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_user_v1_user_proto_rawDescGZIP(), []int{26}
|
||
}
|
||
|
||
func (x *UserIdentity) GetUserId() int64 {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *UserIdentity) GetDisplayUserId() string {
|
||
if x != nil {
|
||
return x.DisplayUserId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *UserIdentity) GetStatus() string {
|
||
if x != nil {
|
||
return x.Status
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *UserIdentity) GetDefaultDisplayUserId() string {
|
||
if x != nil {
|
||
return x.DefaultDisplayUserId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *UserIdentity) GetDisplayUserIdKind() string {
|
||
if x != nil {
|
||
return x.DisplayUserIdKind
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *UserIdentity) GetDisplayUserIdExpiresAtMs() int64 {
|
||
if x != nil {
|
||
return x.DisplayUserIdExpiresAtMs
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// GetUserIdentityRequest 按 user_id 查询当前短号。
|
||
type GetUserIdentityRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *GetUserIdentityRequest) Reset() {
|
||
*x = GetUserIdentityRequest{}
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[27]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *GetUserIdentityRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*GetUserIdentityRequest) ProtoMessage() {}
|
||
|
||
func (x *GetUserIdentityRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[27]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use GetUserIdentityRequest.ProtoReflect.Descriptor instead.
|
||
func (*GetUserIdentityRequest) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_user_v1_user_proto_rawDescGZIP(), []int{27}
|
||
}
|
||
|
||
func (x *GetUserIdentityRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *GetUserIdentityRequest) GetUserId() int64 {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// GetUserIdentityResponse 返回当前短号绑定。
|
||
type GetUserIdentityResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Identity *UserIdentity `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *GetUserIdentityResponse) Reset() {
|
||
*x = GetUserIdentityResponse{}
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[28]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *GetUserIdentityResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*GetUserIdentityResponse) ProtoMessage() {}
|
||
|
||
func (x *GetUserIdentityResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[28]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use GetUserIdentityResponse.ProtoReflect.Descriptor instead.
|
||
func (*GetUserIdentityResponse) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_user_v1_user_proto_rawDescGZIP(), []int{28}
|
||
}
|
||
|
||
func (x *GetUserIdentityResponse) GetIdentity() *UserIdentity {
|
||
if x != nil {
|
||
return x.Identity
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// ResolveDisplayUserIDRequest 把客户端展示短号解析成系统 user_id。
|
||
type ResolveDisplayUserIDRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
DisplayUserId string `protobuf:"bytes,2,opt,name=display_user_id,json=displayUserId,proto3" json:"display_user_id,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ResolveDisplayUserIDRequest) Reset() {
|
||
*x = ResolveDisplayUserIDRequest{}
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[29]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ResolveDisplayUserIDRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ResolveDisplayUserIDRequest) ProtoMessage() {}
|
||
|
||
func (x *ResolveDisplayUserIDRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[29]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use ResolveDisplayUserIDRequest.ProtoReflect.Descriptor instead.
|
||
func (*ResolveDisplayUserIDRequest) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_user_v1_user_proto_rawDescGZIP(), []int{29}
|
||
}
|
||
|
||
func (x *ResolveDisplayUserIDRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *ResolveDisplayUserIDRequest) GetDisplayUserId() string {
|
||
if x != nil {
|
||
return x.DisplayUserId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
// ResolveDisplayUserIDResponse 返回 active 短号归属。
|
||
type ResolveDisplayUserIDResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Identity *UserIdentity `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ResolveDisplayUserIDResponse) Reset() {
|
||
*x = ResolveDisplayUserIDResponse{}
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[30]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ResolveDisplayUserIDResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ResolveDisplayUserIDResponse) ProtoMessage() {}
|
||
|
||
func (x *ResolveDisplayUserIDResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[30]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use ResolveDisplayUserIDResponse.ProtoReflect.Descriptor instead.
|
||
func (*ResolveDisplayUserIDResponse) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_user_v1_user_proto_rawDescGZIP(), []int{30}
|
||
}
|
||
|
||
func (x *ResolveDisplayUserIDResponse) GetIdentity() *UserIdentity {
|
||
if x != nil {
|
||
return x.Identity
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// ChangeDisplayUserIDRequest 修改用户短号,必须由 user-service 保证事务一致。
|
||
type ChangeDisplayUserIDRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||
NewDisplayUserId string `protobuf:"bytes,3,opt,name=new_display_user_id,json=newDisplayUserId,proto3" json:"new_display_user_id,omitempty"`
|
||
Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"`
|
||
OperatorUserId int64 `protobuf:"varint,5,opt,name=operator_user_id,json=operatorUserId,proto3" json:"operator_user_id,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ChangeDisplayUserIDRequest) Reset() {
|
||
*x = ChangeDisplayUserIDRequest{}
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[31]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ChangeDisplayUserIDRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ChangeDisplayUserIDRequest) ProtoMessage() {}
|
||
|
||
func (x *ChangeDisplayUserIDRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[31]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use ChangeDisplayUserIDRequest.ProtoReflect.Descriptor instead.
|
||
func (*ChangeDisplayUserIDRequest) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_user_v1_user_proto_rawDescGZIP(), []int{31}
|
||
}
|
||
|
||
func (x *ChangeDisplayUserIDRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *ChangeDisplayUserIDRequest) GetUserId() int64 {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ChangeDisplayUserIDRequest) GetNewDisplayUserId() string {
|
||
if x != nil {
|
||
return x.NewDisplayUserId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *ChangeDisplayUserIDRequest) GetReason() string {
|
||
if x != nil {
|
||
return x.Reason
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *ChangeDisplayUserIDRequest) GetOperatorUserId() int64 {
|
||
if x != nil {
|
||
return x.OperatorUserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// ChangeDisplayUserIDResponse 返回修改后的 active 绑定。
|
||
type ChangeDisplayUserIDResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Identity *UserIdentity `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ChangeDisplayUserIDResponse) Reset() {
|
||
*x = ChangeDisplayUserIDResponse{}
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[32]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ChangeDisplayUserIDResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ChangeDisplayUserIDResponse) ProtoMessage() {}
|
||
|
||
func (x *ChangeDisplayUserIDResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[32]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use ChangeDisplayUserIDResponse.ProtoReflect.Descriptor instead.
|
||
func (*ChangeDisplayUserIDResponse) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_user_v1_user_proto_rawDescGZIP(), []int{32}
|
||
}
|
||
|
||
func (x *ChangeDisplayUserIDResponse) GetIdentity() *UserIdentity {
|
||
if x != nil {
|
||
return x.Identity
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// ApplyPrettyDisplayUserIDRequest 申请临时靓号并覆盖当前展示号。
|
||
type ApplyPrettyDisplayUserIDRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||
PrettyDisplayUserId string `protobuf:"bytes,3,opt,name=pretty_display_user_id,json=prettyDisplayUserId,proto3" json:"pretty_display_user_id,omitempty"`
|
||
LeaseDurationMs int64 `protobuf:"varint,4,opt,name=lease_duration_ms,json=leaseDurationMs,proto3" json:"lease_duration_ms,omitempty"`
|
||
PaymentReceiptId string `protobuf:"bytes,5,opt,name=payment_receipt_id,json=paymentReceiptId,proto3" json:"payment_receipt_id,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ApplyPrettyDisplayUserIDRequest) Reset() {
|
||
*x = ApplyPrettyDisplayUserIDRequest{}
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[33]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ApplyPrettyDisplayUserIDRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ApplyPrettyDisplayUserIDRequest) ProtoMessage() {}
|
||
|
||
func (x *ApplyPrettyDisplayUserIDRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[33]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use ApplyPrettyDisplayUserIDRequest.ProtoReflect.Descriptor instead.
|
||
func (*ApplyPrettyDisplayUserIDRequest) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_user_v1_user_proto_rawDescGZIP(), []int{33}
|
||
}
|
||
|
||
func (x *ApplyPrettyDisplayUserIDRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *ApplyPrettyDisplayUserIDRequest) GetUserId() int64 {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ApplyPrettyDisplayUserIDRequest) GetPrettyDisplayUserId() string {
|
||
if x != nil {
|
||
return x.PrettyDisplayUserId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *ApplyPrettyDisplayUserIDRequest) GetLeaseDurationMs() int64 {
|
||
if x != nil {
|
||
return x.LeaseDurationMs
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ApplyPrettyDisplayUserIDRequest) GetPaymentReceiptId() string {
|
||
if x != nil {
|
||
return x.PaymentReceiptId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
// ApplyPrettyDisplayUserIDResponse 返回申请成功后的当前展示号和租约。
|
||
type ApplyPrettyDisplayUserIDResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Identity *UserIdentity `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"`
|
||
LeaseId string `protobuf:"bytes,2,opt,name=lease_id,json=leaseId,proto3" json:"lease_id,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ApplyPrettyDisplayUserIDResponse) Reset() {
|
||
*x = ApplyPrettyDisplayUserIDResponse{}
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[34]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ApplyPrettyDisplayUserIDResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ApplyPrettyDisplayUserIDResponse) ProtoMessage() {}
|
||
|
||
func (x *ApplyPrettyDisplayUserIDResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[34]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use ApplyPrettyDisplayUserIDResponse.ProtoReflect.Descriptor instead.
|
||
func (*ApplyPrettyDisplayUserIDResponse) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_user_v1_user_proto_rawDescGZIP(), []int{34}
|
||
}
|
||
|
||
func (x *ApplyPrettyDisplayUserIDResponse) GetIdentity() *UserIdentity {
|
||
if x != nil {
|
||
return x.Identity
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *ApplyPrettyDisplayUserIDResponse) GetLeaseId() string {
|
||
if x != nil {
|
||
return x.LeaseId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
// ExpirePrettyDisplayUserIDRequest 主动触发靓号过期恢复。
|
||
type ExpirePrettyDisplayUserIDRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Meta *RequestMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
||
UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||
LeaseId string `protobuf:"bytes,3,opt,name=lease_id,json=leaseId,proto3" json:"lease_id,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ExpirePrettyDisplayUserIDRequest) Reset() {
|
||
*x = ExpirePrettyDisplayUserIDRequest{}
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[35]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ExpirePrettyDisplayUserIDRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ExpirePrettyDisplayUserIDRequest) ProtoMessage() {}
|
||
|
||
func (x *ExpirePrettyDisplayUserIDRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[35]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use ExpirePrettyDisplayUserIDRequest.ProtoReflect.Descriptor instead.
|
||
func (*ExpirePrettyDisplayUserIDRequest) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_user_v1_user_proto_rawDescGZIP(), []int{35}
|
||
}
|
||
|
||
func (x *ExpirePrettyDisplayUserIDRequest) GetMeta() *RequestMeta {
|
||
if x != nil {
|
||
return x.Meta
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *ExpirePrettyDisplayUserIDRequest) GetUserId() int64 {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ExpirePrettyDisplayUserIDRequest) GetLeaseId() string {
|
||
if x != nil {
|
||
return x.LeaseId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
// ExpirePrettyDisplayUserIDResponse 返回恢复后的默认短号身份。
|
||
type ExpirePrettyDisplayUserIDResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Identity *UserIdentity `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ExpirePrettyDisplayUserIDResponse) Reset() {
|
||
*x = ExpirePrettyDisplayUserIDResponse{}
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[36]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ExpirePrettyDisplayUserIDResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ExpirePrettyDisplayUserIDResponse) ProtoMessage() {}
|
||
|
||
func (x *ExpirePrettyDisplayUserIDResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_api_proto_user_v1_user_proto_msgTypes[36]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use ExpirePrettyDisplayUserIDResponse.ProtoReflect.Descriptor instead.
|
||
func (*ExpirePrettyDisplayUserIDResponse) Descriptor() ([]byte, []int) {
|
||
return file_api_proto_user_v1_user_proto_rawDescGZIP(), []int{36}
|
||
}
|
||
|
||
func (x *ExpirePrettyDisplayUserIDResponse) GetIdentity() *UserIdentity {
|
||
if x != nil {
|
||
return x.Identity
|
||
}
|
||
return nil
|
||
}
|
||
|
||
var File_api_proto_user_v1_user_proto protoreflect.FileDescriptor
|
||
|
||
const file_api_proto_user_v1_user_proto_rawDesc = "" +
|
||
"\n" +
|
||
"\x1capi/proto/user/v1/user.proto\x12\rhyapp.user.v1\"\x87\x02\n" +
|
||
"\vRequestMeta\x12\x1d\n" +
|
||
"\n" +
|
||
"request_id\x18\x01 \x01(\tR\trequestId\x12\x16\n" +
|
||
"\x06caller\x18\x02 \x01(\tR\x06caller\x12&\n" +
|
||
"\x0fgateway_node_id\x18\x03 \x01(\tR\rgatewayNodeId\x12\x1c\n" +
|
||
"\n" +
|
||
"sent_at_ms\x18\x04 \x01(\x03R\bsentAtMs\x12\x1b\n" +
|
||
"\tdevice_id\x18\x05 \x01(\tR\bdeviceId\x12\x1b\n" +
|
||
"\tclient_ip\x18\x06 \x01(\tR\bclientIp\x12\x1d\n" +
|
||
"\n" +
|
||
"user_agent\x18\a \x01(\tR\tuserAgent\x12\"\n" +
|
||
"\rcountry_by_ip\x18\b \x01(\tR\vcountryByIp\"\xd6\x05\n" +
|
||
"\x04User\x12\x17\n" +
|
||
"\auser_id\x18\x01 \x01(\x03R\x06userId\x121\n" +
|
||
"\x06status\x18\x02 \x01(\x0e2\x19.hyapp.user.v1.UserStatusR\x06status\x12\"\n" +
|
||
"\rcreated_at_ms\x18\x03 \x01(\x03R\vcreatedAtMs\x12\"\n" +
|
||
"\rupdated_at_ms\x18\x04 \x01(\x03R\vupdatedAtMs\x12&\n" +
|
||
"\x0fdisplay_user_id\x18\x05 \x01(\tR\rdisplayUserId\x125\n" +
|
||
"\x17default_display_user_id\x18\x06 \x01(\tR\x14defaultDisplayUserId\x12/\n" +
|
||
"\x14display_user_id_kind\x18\a \x01(\tR\x11displayUserIdKind\x12?\n" +
|
||
"\x1ddisplay_user_id_expires_at_ms\x18\b \x01(\x03R\x18displayUserIdExpiresAtMs\x12\x1a\n" +
|
||
"\busername\x18\t \x01(\tR\busername\x12\x16\n" +
|
||
"\x06gender\x18\n" +
|
||
" \x01(\tR\x06gender\x12\x18\n" +
|
||
"\acountry\x18\v \x01(\tR\acountry\x12\x16\n" +
|
||
"\x06avatar\x18\f \x01(\tR\x06avatar\x12\x14\n" +
|
||
"\x05birth\x18\r \x01(\tR\x05birth\x12\x1a\n" +
|
||
"\blanguage\x18\x0e \x01(\tR\blanguage\x12\x1d\n" +
|
||
"\n" +
|
||
"country_id\x18\x0f \x01(\x03R\tcountryId\x12!\n" +
|
||
"\fcountry_name\x18\x10 \x01(\tR\vcountryName\x120\n" +
|
||
"\x14country_display_name\x18\x11 \x01(\tR\x12countryDisplayName\x12\x1b\n" +
|
||
"\tregion_id\x18\x12 \x01(\x03R\bregionId\x12\x1f\n" +
|
||
"\vregion_code\x18\x13 \x01(\tR\n" +
|
||
"regionCode\x12\x1f\n" +
|
||
"\vregion_name\x18\x14 \x01(\tR\n" +
|
||
"regionName\"Y\n" +
|
||
"\x0eGetUserRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.user.v1.RequestMetaR\x04meta\x12\x17\n" +
|
||
"\auser_id\x18\x02 \x01(\x03R\x06userId\":\n" +
|
||
"\x0fGetUserResponse\x12'\n" +
|
||
"\x04user\x18\x01 \x01(\v2\x13.hyapp.user.v1.UserR\x04user\"a\n" +
|
||
"\x14BatchGetUsersRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.user.v1.RequestMetaR\x04meta\x12\x19\n" +
|
||
"\buser_ids\x18\x02 \x03(\x03R\auserIds\"\xad\x01\n" +
|
||
"\x15BatchGetUsersResponse\x12E\n" +
|
||
"\x05users\x18\x01 \x03(\v2/.hyapp.user.v1.BatchGetUsersResponse.UsersEntryR\x05users\x1aM\n" +
|
||
"\n" +
|
||
"UsersEntry\x12\x10\n" +
|
||
"\x03key\x18\x01 \x01(\x03R\x03key\x12)\n" +
|
||
"\x05value\x18\x02 \x01(\v2\x13.hyapp.user.v1.UserR\x05value:\x028\x01\"\xde\x01\n" +
|
||
"\x18UpdateUserProfileRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.user.v1.RequestMetaR\x04meta\x12\x17\n" +
|
||
"\auser_id\x18\x02 \x01(\x03R\x06userId\x12\x1f\n" +
|
||
"\busername\x18\x03 \x01(\tH\x00R\busername\x88\x01\x01\x12\x1b\n" +
|
||
"\x06avatar\x18\x04 \x01(\tH\x01R\x06avatar\x88\x01\x01\x12\x19\n" +
|
||
"\x05birth\x18\x05 \x01(\tH\x02R\x05birth\x88\x01\x01B\v\n" +
|
||
"\t_usernameB\t\n" +
|
||
"\a_avatarB\b\n" +
|
||
"\x06_birth\"D\n" +
|
||
"\x19UpdateUserProfileResponse\x12'\n" +
|
||
"\x04user\x18\x01 \x01(\v2\x13.hyapp.user.v1.UserR\x04user\"}\n" +
|
||
"\x18ChangeUserCountryRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.user.v1.RequestMetaR\x04meta\x12\x17\n" +
|
||
"\auser_id\x18\x02 \x01(\x03R\x06userId\x12\x18\n" +
|
||
"\acountry\x18\x03 \x01(\tR\acountry\"~\n" +
|
||
"\x19ChangeUserCountryResponse\x12'\n" +
|
||
"\x04user\x18\x01 \x01(\v2\x13.hyapp.user.v1.UserR\x04user\x128\n" +
|
||
"\x19next_change_allowed_at_ms\x18\x02 \x01(\x03R\x15nextChangeAllowedAtMs\"\x9f\x02\n" +
|
||
"\aCountry\x12\x1d\n" +
|
||
"\n" +
|
||
"country_id\x18\x01 \x01(\x03R\tcountryId\x12!\n" +
|
||
"\fcountry_name\x18\x02 \x01(\tR\vcountryName\x12!\n" +
|
||
"\fcountry_code\x18\x03 \x01(\tR\vcountryCode\x120\n" +
|
||
"\x14country_display_name\x18\x04 \x01(\tR\x12countryDisplayName\x12\x16\n" +
|
||
"\x06status\x18\x05 \x01(\tR\x06status\x12\x1d\n" +
|
||
"\n" +
|
||
"sort_order\x18\x06 \x01(\x05R\tsortOrder\x12\"\n" +
|
||
"\rcreated_at_ms\x18\a \x01(\x03R\vcreatedAtMs\x12\"\n" +
|
||
"\rupdated_at_ms\x18\b \x01(\x03R\vupdatedAtMs\"\xf7\x01\n" +
|
||
"\x06Region\x12\x1b\n" +
|
||
"\tregion_id\x18\x01 \x01(\x03R\bregionId\x12\x1f\n" +
|
||
"\vregion_code\x18\x02 \x01(\tR\n" +
|
||
"regionCode\x12\x12\n" +
|
||
"\x04name\x18\x03 \x01(\tR\x04name\x12\x16\n" +
|
||
"\x06status\x18\x04 \x01(\tR\x06status\x12\x1c\n" +
|
||
"\tcountries\x18\x05 \x03(\tR\tcountries\x12\x1d\n" +
|
||
"\n" +
|
||
"sort_order\x18\x06 \x01(\x05R\tsortOrder\x12\"\n" +
|
||
"\rcreated_at_ms\x18\a \x01(\x03R\vcreatedAtMs\x12\"\n" +
|
||
"\rupdated_at_ms\x18\b \x01(\x03R\vupdatedAtMs\"\x87\x02\n" +
|
||
"\x14CreateCountryRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.user.v1.RequestMetaR\x04meta\x12!\n" +
|
||
"\fcountry_name\x18\x02 \x01(\tR\vcountryName\x12!\n" +
|
||
"\fcountry_code\x18\x03 \x01(\tR\vcountryCode\x120\n" +
|
||
"\x14country_display_name\x18\x04 \x01(\tR\x12countryDisplayName\x12\x1d\n" +
|
||
"\n" +
|
||
"sort_order\x18\x05 \x01(\x05R\tsortOrder\x12(\n" +
|
||
"\x10operator_user_id\x18\x06 \x01(\x03R\x0eoperatorUserId\"^\n" +
|
||
"\x14ListCountriesRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.user.v1.RequestMetaR\x04meta\x12\x16\n" +
|
||
"\x06status\x18\x02 \x01(\tR\x06status\"M\n" +
|
||
"\x15ListCountriesResponse\x124\n" +
|
||
"\tcountries\x18\x01 \x03(\v2\x16.hyapp.user.v1.CountryR\tcountries\"\x83\x02\n" +
|
||
"\x14UpdateCountryRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.user.v1.RequestMetaR\x04meta\x12\x1d\n" +
|
||
"\n" +
|
||
"country_id\x18\x02 \x01(\x03R\tcountryId\x12!\n" +
|
||
"\fcountry_name\x18\x03 \x01(\tR\vcountryName\x120\n" +
|
||
"\x14country_display_name\x18\x04 \x01(\tR\x12countryDisplayName\x12\x1d\n" +
|
||
"\n" +
|
||
"sort_order\x18\x05 \x01(\x05R\tsortOrder\x12(\n" +
|
||
"\x10operator_user_id\x18\x06 \x01(\x03R\x0eoperatorUserId\"\x90\x01\n" +
|
||
"\x15DisableCountryRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.user.v1.RequestMetaR\x04meta\x12\x1d\n" +
|
||
"\n" +
|
||
"country_id\x18\x02 \x01(\x03R\tcountryId\x12(\n" +
|
||
"\x10operator_user_id\x18\x03 \x01(\x03R\x0eoperatorUserId\"C\n" +
|
||
"\x0fCountryResponse\x120\n" +
|
||
"\acountry\x18\x01 \x01(\v2\x16.hyapp.user.v1.CountryR\acountry\"\xe1\x01\n" +
|
||
"\x13CreateRegionRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.user.v1.RequestMetaR\x04meta\x12\x1f\n" +
|
||
"\vregion_code\x18\x02 \x01(\tR\n" +
|
||
"regionCode\x12\x12\n" +
|
||
"\x04name\x18\x03 \x01(\tR\x04name\x12\x1c\n" +
|
||
"\tcountries\x18\x04 \x03(\tR\tcountries\x12\x1d\n" +
|
||
"\n" +
|
||
"sort_order\x18\x05 \x01(\x05R\tsortOrder\x12(\n" +
|
||
"\x10operator_user_id\x18\x06 \x01(\x03R\x0eoperatorUserId\"\\\n" +
|
||
"\x12ListRegionsRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.user.v1.RequestMetaR\x04meta\x12\x16\n" +
|
||
"\x06status\x18\x02 \x01(\tR\x06status\"F\n" +
|
||
"\x13ListRegionsResponse\x12/\n" +
|
||
"\aregions\x18\x01 \x03(\v2\x15.hyapp.user.v1.RegionR\aregions\"_\n" +
|
||
"\x10GetRegionRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.user.v1.RequestMetaR\x04meta\x12\x1b\n" +
|
||
"\tregion_id\x18\x02 \x01(\x03R\bregionId\"\xe0\x01\n" +
|
||
"\x13UpdateRegionRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.user.v1.RequestMetaR\x04meta\x12\x1b\n" +
|
||
"\tregion_id\x18\x02 \x01(\x03R\bregionId\x12\x1f\n" +
|
||
"\vregion_code\x18\x03 \x01(\tR\n" +
|
||
"regionCode\x12\x12\n" +
|
||
"\x04name\x18\x04 \x01(\tR\x04name\x12\x1d\n" +
|
||
"\n" +
|
||
"sort_order\x18\x05 \x01(\x05R\tsortOrder\x12(\n" +
|
||
"\x10operator_user_id\x18\x06 \x01(\x03R\x0eoperatorUserId\"\xb4\x01\n" +
|
||
"\x1dReplaceRegionCountriesRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.user.v1.RequestMetaR\x04meta\x12\x1b\n" +
|
||
"\tregion_id\x18\x02 \x01(\x03R\bregionId\x12\x1c\n" +
|
||
"\tcountries\x18\x03 \x03(\tR\tcountries\x12(\n" +
|
||
"\x10operator_user_id\x18\x04 \x01(\x03R\x0eoperatorUserId\"\x8d\x01\n" +
|
||
"\x14DisableRegionRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.user.v1.RequestMetaR\x04meta\x12\x1b\n" +
|
||
"\tregion_id\x18\x02 \x01(\x03R\bregionId\x12(\n" +
|
||
"\x10operator_user_id\x18\x03 \x01(\x03R\x0eoperatorUserId\"?\n" +
|
||
"\x0eRegionResponse\x12-\n" +
|
||
"\x06region\x18\x01 \x01(\v2\x15.hyapp.user.v1.RegionR\x06region\"\x90\x02\n" +
|
||
"\fUserIdentity\x12\x17\n" +
|
||
"\auser_id\x18\x01 \x01(\x03R\x06userId\x12&\n" +
|
||
"\x0fdisplay_user_id\x18\x02 \x01(\tR\rdisplayUserId\x12\x16\n" +
|
||
"\x06status\x18\x03 \x01(\tR\x06status\x125\n" +
|
||
"\x17default_display_user_id\x18\x04 \x01(\tR\x14defaultDisplayUserId\x12/\n" +
|
||
"\x14display_user_id_kind\x18\x05 \x01(\tR\x11displayUserIdKind\x12?\n" +
|
||
"\x1ddisplay_user_id_expires_at_ms\x18\x06 \x01(\x03R\x18displayUserIdExpiresAtMs\"a\n" +
|
||
"\x16GetUserIdentityRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.user.v1.RequestMetaR\x04meta\x12\x17\n" +
|
||
"\auser_id\x18\x02 \x01(\x03R\x06userId\"R\n" +
|
||
"\x17GetUserIdentityResponse\x127\n" +
|
||
"\bidentity\x18\x01 \x01(\v2\x1b.hyapp.user.v1.UserIdentityR\bidentity\"u\n" +
|
||
"\x1bResolveDisplayUserIDRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.user.v1.RequestMetaR\x04meta\x12&\n" +
|
||
"\x0fdisplay_user_id\x18\x02 \x01(\tR\rdisplayUserId\"W\n" +
|
||
"\x1cResolveDisplayUserIDResponse\x127\n" +
|
||
"\bidentity\x18\x01 \x01(\v2\x1b.hyapp.user.v1.UserIdentityR\bidentity\"\xd6\x01\n" +
|
||
"\x1aChangeDisplayUserIDRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.user.v1.RequestMetaR\x04meta\x12\x17\n" +
|
||
"\auser_id\x18\x02 \x01(\x03R\x06userId\x12-\n" +
|
||
"\x13new_display_user_id\x18\x03 \x01(\tR\x10newDisplayUserId\x12\x16\n" +
|
||
"\x06reason\x18\x04 \x01(\tR\x06reason\x12(\n" +
|
||
"\x10operator_user_id\x18\x05 \x01(\x03R\x0eoperatorUserId\"V\n" +
|
||
"\x1bChangeDisplayUserIDResponse\x127\n" +
|
||
"\bidentity\x18\x01 \x01(\v2\x1b.hyapp.user.v1.UserIdentityR\bidentity\"\xf9\x01\n" +
|
||
"\x1fApplyPrettyDisplayUserIDRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.user.v1.RequestMetaR\x04meta\x12\x17\n" +
|
||
"\auser_id\x18\x02 \x01(\x03R\x06userId\x123\n" +
|
||
"\x16pretty_display_user_id\x18\x03 \x01(\tR\x13prettyDisplayUserId\x12*\n" +
|
||
"\x11lease_duration_ms\x18\x04 \x01(\x03R\x0fleaseDurationMs\x12,\n" +
|
||
"\x12payment_receipt_id\x18\x05 \x01(\tR\x10paymentReceiptId\"v\n" +
|
||
" ApplyPrettyDisplayUserIDResponse\x127\n" +
|
||
"\bidentity\x18\x01 \x01(\v2\x1b.hyapp.user.v1.UserIdentityR\bidentity\x12\x19\n" +
|
||
"\blease_id\x18\x02 \x01(\tR\aleaseId\"\x86\x01\n" +
|
||
" ExpirePrettyDisplayUserIDRequest\x12.\n" +
|
||
"\x04meta\x18\x01 \x01(\v2\x1a.hyapp.user.v1.RequestMetaR\x04meta\x12\x17\n" +
|
||
"\auser_id\x18\x02 \x01(\x03R\x06userId\x12\x19\n" +
|
||
"\blease_id\x18\x03 \x01(\tR\aleaseId\"\\\n" +
|
||
"!ExpirePrettyDisplayUserIDResponse\x127\n" +
|
||
"\bidentity\x18\x01 \x01(\v2\x1b.hyapp.user.v1.UserIdentityR\bidentity*s\n" +
|
||
"\n" +
|
||
"UserStatus\x12\x1b\n" +
|
||
"\x17USER_STATUS_UNSPECIFIED\x10\x00\x12\x16\n" +
|
||
"\x12USER_STATUS_ACTIVE\x10\x01\x12\x18\n" +
|
||
"\x14USER_STATUS_DISABLED\x10\x02\x12\x16\n" +
|
||
"\x12USER_STATUS_BANNED\x10\x032\x83\x03\n" +
|
||
"\vUserService\x12H\n" +
|
||
"\aGetUser\x12\x1d.hyapp.user.v1.GetUserRequest\x1a\x1e.hyapp.user.v1.GetUserResponse\x12Z\n" +
|
||
"\rBatchGetUsers\x12#.hyapp.user.v1.BatchGetUsersRequest\x1a$.hyapp.user.v1.BatchGetUsersResponse\x12f\n" +
|
||
"\x11UpdateUserProfile\x12'.hyapp.user.v1.UpdateUserProfileRequest\x1a(.hyapp.user.v1.UpdateUserProfileResponse\x12f\n" +
|
||
"\x11ChangeUserCountry\x12'.hyapp.user.v1.ChangeUserCountryRequest\x1a(.hyapp.user.v1.ChangeUserCountryResponse2\xf5\x02\n" +
|
||
"\x13CountryAdminService\x12T\n" +
|
||
"\rCreateCountry\x12#.hyapp.user.v1.CreateCountryRequest\x1a\x1e.hyapp.user.v1.CountryResponse\x12Z\n" +
|
||
"\rListCountries\x12#.hyapp.user.v1.ListCountriesRequest\x1a$.hyapp.user.v1.ListCountriesResponse\x12T\n" +
|
||
"\rUpdateCountry\x12#.hyapp.user.v1.UpdateCountryRequest\x1a\x1e.hyapp.user.v1.CountryResponse\x12V\n" +
|
||
"\x0eDisableCountry\x12$.hyapp.user.v1.DisableCountryRequest\x1a\x1e.hyapp.user.v1.CountryResponse2\x99\x04\n" +
|
||
"\x12RegionAdminService\x12Q\n" +
|
||
"\fCreateRegion\x12\".hyapp.user.v1.CreateRegionRequest\x1a\x1d.hyapp.user.v1.RegionResponse\x12T\n" +
|
||
"\vListRegions\x12!.hyapp.user.v1.ListRegionsRequest\x1a\".hyapp.user.v1.ListRegionsResponse\x12K\n" +
|
||
"\tGetRegion\x12\x1f.hyapp.user.v1.GetRegionRequest\x1a\x1d.hyapp.user.v1.RegionResponse\x12Q\n" +
|
||
"\fUpdateRegion\x12\".hyapp.user.v1.UpdateRegionRequest\x1a\x1d.hyapp.user.v1.RegionResponse\x12e\n" +
|
||
"\x16ReplaceRegionCountries\x12,.hyapp.user.v1.ReplaceRegionCountriesRequest\x1a\x1d.hyapp.user.v1.RegionResponse\x12S\n" +
|
||
"\rDisableRegion\x12#.hyapp.user.v1.DisableRegionRequest\x1a\x1d.hyapp.user.v1.RegionResponse2\xd3\x04\n" +
|
||
"\x13UserIdentityService\x12`\n" +
|
||
"\x0fGetUserIdentity\x12%.hyapp.user.v1.GetUserIdentityRequest\x1a&.hyapp.user.v1.GetUserIdentityResponse\x12o\n" +
|
||
"\x14ResolveDisplayUserID\x12*.hyapp.user.v1.ResolveDisplayUserIDRequest\x1a+.hyapp.user.v1.ResolveDisplayUserIDResponse\x12l\n" +
|
||
"\x13ChangeDisplayUserID\x12).hyapp.user.v1.ChangeDisplayUserIDRequest\x1a*.hyapp.user.v1.ChangeDisplayUserIDResponse\x12{\n" +
|
||
"\x18ApplyPrettyDisplayUserID\x12..hyapp.user.v1.ApplyPrettyDisplayUserIDRequest\x1a/.hyapp.user.v1.ApplyPrettyDisplayUserIDResponse\x12~\n" +
|
||
"\x19ExpirePrettyDisplayUserID\x12/.hyapp.user.v1.ExpirePrettyDisplayUserIDRequest\x1a0.hyapp.user.v1.ExpirePrettyDisplayUserIDResponseB Z\x1ehyapp/api/proto/user/v1;userv1b\x06proto3"
|
||
|
||
var (
|
||
file_api_proto_user_v1_user_proto_rawDescOnce sync.Once
|
||
file_api_proto_user_v1_user_proto_rawDescData []byte
|
||
)
|
||
|
||
func file_api_proto_user_v1_user_proto_rawDescGZIP() []byte {
|
||
file_api_proto_user_v1_user_proto_rawDescOnce.Do(func() {
|
||
file_api_proto_user_v1_user_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_api_proto_user_v1_user_proto_rawDesc), len(file_api_proto_user_v1_user_proto_rawDesc)))
|
||
})
|
||
return file_api_proto_user_v1_user_proto_rawDescData
|
||
}
|
||
|
||
var file_api_proto_user_v1_user_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||
var file_api_proto_user_v1_user_proto_msgTypes = make([]protoimpl.MessageInfo, 38)
|
||
var file_api_proto_user_v1_user_proto_goTypes = []any{
|
||
(UserStatus)(0), // 0: hyapp.user.v1.UserStatus
|
||
(*RequestMeta)(nil), // 1: hyapp.user.v1.RequestMeta
|
||
(*User)(nil), // 2: hyapp.user.v1.User
|
||
(*GetUserRequest)(nil), // 3: hyapp.user.v1.GetUserRequest
|
||
(*GetUserResponse)(nil), // 4: hyapp.user.v1.GetUserResponse
|
||
(*BatchGetUsersRequest)(nil), // 5: hyapp.user.v1.BatchGetUsersRequest
|
||
(*BatchGetUsersResponse)(nil), // 6: hyapp.user.v1.BatchGetUsersResponse
|
||
(*UpdateUserProfileRequest)(nil), // 7: hyapp.user.v1.UpdateUserProfileRequest
|
||
(*UpdateUserProfileResponse)(nil), // 8: hyapp.user.v1.UpdateUserProfileResponse
|
||
(*ChangeUserCountryRequest)(nil), // 9: hyapp.user.v1.ChangeUserCountryRequest
|
||
(*ChangeUserCountryResponse)(nil), // 10: hyapp.user.v1.ChangeUserCountryResponse
|
||
(*Country)(nil), // 11: hyapp.user.v1.Country
|
||
(*Region)(nil), // 12: hyapp.user.v1.Region
|
||
(*CreateCountryRequest)(nil), // 13: hyapp.user.v1.CreateCountryRequest
|
||
(*ListCountriesRequest)(nil), // 14: hyapp.user.v1.ListCountriesRequest
|
||
(*ListCountriesResponse)(nil), // 15: hyapp.user.v1.ListCountriesResponse
|
||
(*UpdateCountryRequest)(nil), // 16: hyapp.user.v1.UpdateCountryRequest
|
||
(*DisableCountryRequest)(nil), // 17: hyapp.user.v1.DisableCountryRequest
|
||
(*CountryResponse)(nil), // 18: hyapp.user.v1.CountryResponse
|
||
(*CreateRegionRequest)(nil), // 19: hyapp.user.v1.CreateRegionRequest
|
||
(*ListRegionsRequest)(nil), // 20: hyapp.user.v1.ListRegionsRequest
|
||
(*ListRegionsResponse)(nil), // 21: hyapp.user.v1.ListRegionsResponse
|
||
(*GetRegionRequest)(nil), // 22: hyapp.user.v1.GetRegionRequest
|
||
(*UpdateRegionRequest)(nil), // 23: hyapp.user.v1.UpdateRegionRequest
|
||
(*ReplaceRegionCountriesRequest)(nil), // 24: hyapp.user.v1.ReplaceRegionCountriesRequest
|
||
(*DisableRegionRequest)(nil), // 25: hyapp.user.v1.DisableRegionRequest
|
||
(*RegionResponse)(nil), // 26: hyapp.user.v1.RegionResponse
|
||
(*UserIdentity)(nil), // 27: hyapp.user.v1.UserIdentity
|
||
(*GetUserIdentityRequest)(nil), // 28: hyapp.user.v1.GetUserIdentityRequest
|
||
(*GetUserIdentityResponse)(nil), // 29: hyapp.user.v1.GetUserIdentityResponse
|
||
(*ResolveDisplayUserIDRequest)(nil), // 30: hyapp.user.v1.ResolveDisplayUserIDRequest
|
||
(*ResolveDisplayUserIDResponse)(nil), // 31: hyapp.user.v1.ResolveDisplayUserIDResponse
|
||
(*ChangeDisplayUserIDRequest)(nil), // 32: hyapp.user.v1.ChangeDisplayUserIDRequest
|
||
(*ChangeDisplayUserIDResponse)(nil), // 33: hyapp.user.v1.ChangeDisplayUserIDResponse
|
||
(*ApplyPrettyDisplayUserIDRequest)(nil), // 34: hyapp.user.v1.ApplyPrettyDisplayUserIDRequest
|
||
(*ApplyPrettyDisplayUserIDResponse)(nil), // 35: hyapp.user.v1.ApplyPrettyDisplayUserIDResponse
|
||
(*ExpirePrettyDisplayUserIDRequest)(nil), // 36: hyapp.user.v1.ExpirePrettyDisplayUserIDRequest
|
||
(*ExpirePrettyDisplayUserIDResponse)(nil), // 37: hyapp.user.v1.ExpirePrettyDisplayUserIDResponse
|
||
nil, // 38: hyapp.user.v1.BatchGetUsersResponse.UsersEntry
|
||
}
|
||
var file_api_proto_user_v1_user_proto_depIdxs = []int32{
|
||
0, // 0: hyapp.user.v1.User.status:type_name -> hyapp.user.v1.UserStatus
|
||
1, // 1: hyapp.user.v1.GetUserRequest.meta:type_name -> hyapp.user.v1.RequestMeta
|
||
2, // 2: hyapp.user.v1.GetUserResponse.user:type_name -> hyapp.user.v1.User
|
||
1, // 3: hyapp.user.v1.BatchGetUsersRequest.meta:type_name -> hyapp.user.v1.RequestMeta
|
||
38, // 4: hyapp.user.v1.BatchGetUsersResponse.users:type_name -> hyapp.user.v1.BatchGetUsersResponse.UsersEntry
|
||
1, // 5: hyapp.user.v1.UpdateUserProfileRequest.meta:type_name -> hyapp.user.v1.RequestMeta
|
||
2, // 6: hyapp.user.v1.UpdateUserProfileResponse.user:type_name -> hyapp.user.v1.User
|
||
1, // 7: hyapp.user.v1.ChangeUserCountryRequest.meta:type_name -> hyapp.user.v1.RequestMeta
|
||
2, // 8: hyapp.user.v1.ChangeUserCountryResponse.user:type_name -> hyapp.user.v1.User
|
||
1, // 9: hyapp.user.v1.CreateCountryRequest.meta:type_name -> hyapp.user.v1.RequestMeta
|
||
1, // 10: hyapp.user.v1.ListCountriesRequest.meta:type_name -> hyapp.user.v1.RequestMeta
|
||
11, // 11: hyapp.user.v1.ListCountriesResponse.countries:type_name -> hyapp.user.v1.Country
|
||
1, // 12: hyapp.user.v1.UpdateCountryRequest.meta:type_name -> hyapp.user.v1.RequestMeta
|
||
1, // 13: hyapp.user.v1.DisableCountryRequest.meta:type_name -> hyapp.user.v1.RequestMeta
|
||
11, // 14: hyapp.user.v1.CountryResponse.country:type_name -> hyapp.user.v1.Country
|
||
1, // 15: hyapp.user.v1.CreateRegionRequest.meta:type_name -> hyapp.user.v1.RequestMeta
|
||
1, // 16: hyapp.user.v1.ListRegionsRequest.meta:type_name -> hyapp.user.v1.RequestMeta
|
||
12, // 17: hyapp.user.v1.ListRegionsResponse.regions:type_name -> hyapp.user.v1.Region
|
||
1, // 18: hyapp.user.v1.GetRegionRequest.meta:type_name -> hyapp.user.v1.RequestMeta
|
||
1, // 19: hyapp.user.v1.UpdateRegionRequest.meta:type_name -> hyapp.user.v1.RequestMeta
|
||
1, // 20: hyapp.user.v1.ReplaceRegionCountriesRequest.meta:type_name -> hyapp.user.v1.RequestMeta
|
||
1, // 21: hyapp.user.v1.DisableRegionRequest.meta:type_name -> hyapp.user.v1.RequestMeta
|
||
12, // 22: hyapp.user.v1.RegionResponse.region:type_name -> hyapp.user.v1.Region
|
||
1, // 23: hyapp.user.v1.GetUserIdentityRequest.meta:type_name -> hyapp.user.v1.RequestMeta
|
||
27, // 24: hyapp.user.v1.GetUserIdentityResponse.identity:type_name -> hyapp.user.v1.UserIdentity
|
||
1, // 25: hyapp.user.v1.ResolveDisplayUserIDRequest.meta:type_name -> hyapp.user.v1.RequestMeta
|
||
27, // 26: hyapp.user.v1.ResolveDisplayUserIDResponse.identity:type_name -> hyapp.user.v1.UserIdentity
|
||
1, // 27: hyapp.user.v1.ChangeDisplayUserIDRequest.meta:type_name -> hyapp.user.v1.RequestMeta
|
||
27, // 28: hyapp.user.v1.ChangeDisplayUserIDResponse.identity:type_name -> hyapp.user.v1.UserIdentity
|
||
1, // 29: hyapp.user.v1.ApplyPrettyDisplayUserIDRequest.meta:type_name -> hyapp.user.v1.RequestMeta
|
||
27, // 30: hyapp.user.v1.ApplyPrettyDisplayUserIDResponse.identity:type_name -> hyapp.user.v1.UserIdentity
|
||
1, // 31: hyapp.user.v1.ExpirePrettyDisplayUserIDRequest.meta:type_name -> hyapp.user.v1.RequestMeta
|
||
27, // 32: hyapp.user.v1.ExpirePrettyDisplayUserIDResponse.identity:type_name -> hyapp.user.v1.UserIdentity
|
||
2, // 33: hyapp.user.v1.BatchGetUsersResponse.UsersEntry.value:type_name -> hyapp.user.v1.User
|
||
3, // 34: hyapp.user.v1.UserService.GetUser:input_type -> hyapp.user.v1.GetUserRequest
|
||
5, // 35: hyapp.user.v1.UserService.BatchGetUsers:input_type -> hyapp.user.v1.BatchGetUsersRequest
|
||
7, // 36: hyapp.user.v1.UserService.UpdateUserProfile:input_type -> hyapp.user.v1.UpdateUserProfileRequest
|
||
9, // 37: hyapp.user.v1.UserService.ChangeUserCountry:input_type -> hyapp.user.v1.ChangeUserCountryRequest
|
||
13, // 38: hyapp.user.v1.CountryAdminService.CreateCountry:input_type -> hyapp.user.v1.CreateCountryRequest
|
||
14, // 39: hyapp.user.v1.CountryAdminService.ListCountries:input_type -> hyapp.user.v1.ListCountriesRequest
|
||
16, // 40: hyapp.user.v1.CountryAdminService.UpdateCountry:input_type -> hyapp.user.v1.UpdateCountryRequest
|
||
17, // 41: hyapp.user.v1.CountryAdminService.DisableCountry:input_type -> hyapp.user.v1.DisableCountryRequest
|
||
19, // 42: hyapp.user.v1.RegionAdminService.CreateRegion:input_type -> hyapp.user.v1.CreateRegionRequest
|
||
20, // 43: hyapp.user.v1.RegionAdminService.ListRegions:input_type -> hyapp.user.v1.ListRegionsRequest
|
||
22, // 44: hyapp.user.v1.RegionAdminService.GetRegion:input_type -> hyapp.user.v1.GetRegionRequest
|
||
23, // 45: hyapp.user.v1.RegionAdminService.UpdateRegion:input_type -> hyapp.user.v1.UpdateRegionRequest
|
||
24, // 46: hyapp.user.v1.RegionAdminService.ReplaceRegionCountries:input_type -> hyapp.user.v1.ReplaceRegionCountriesRequest
|
||
25, // 47: hyapp.user.v1.RegionAdminService.DisableRegion:input_type -> hyapp.user.v1.DisableRegionRequest
|
||
28, // 48: hyapp.user.v1.UserIdentityService.GetUserIdentity:input_type -> hyapp.user.v1.GetUserIdentityRequest
|
||
30, // 49: hyapp.user.v1.UserIdentityService.ResolveDisplayUserID:input_type -> hyapp.user.v1.ResolveDisplayUserIDRequest
|
||
32, // 50: hyapp.user.v1.UserIdentityService.ChangeDisplayUserID:input_type -> hyapp.user.v1.ChangeDisplayUserIDRequest
|
||
34, // 51: hyapp.user.v1.UserIdentityService.ApplyPrettyDisplayUserID:input_type -> hyapp.user.v1.ApplyPrettyDisplayUserIDRequest
|
||
36, // 52: hyapp.user.v1.UserIdentityService.ExpirePrettyDisplayUserID:input_type -> hyapp.user.v1.ExpirePrettyDisplayUserIDRequest
|
||
4, // 53: hyapp.user.v1.UserService.GetUser:output_type -> hyapp.user.v1.GetUserResponse
|
||
6, // 54: hyapp.user.v1.UserService.BatchGetUsers:output_type -> hyapp.user.v1.BatchGetUsersResponse
|
||
8, // 55: hyapp.user.v1.UserService.UpdateUserProfile:output_type -> hyapp.user.v1.UpdateUserProfileResponse
|
||
10, // 56: hyapp.user.v1.UserService.ChangeUserCountry:output_type -> hyapp.user.v1.ChangeUserCountryResponse
|
||
18, // 57: hyapp.user.v1.CountryAdminService.CreateCountry:output_type -> hyapp.user.v1.CountryResponse
|
||
15, // 58: hyapp.user.v1.CountryAdminService.ListCountries:output_type -> hyapp.user.v1.ListCountriesResponse
|
||
18, // 59: hyapp.user.v1.CountryAdminService.UpdateCountry:output_type -> hyapp.user.v1.CountryResponse
|
||
18, // 60: hyapp.user.v1.CountryAdminService.DisableCountry:output_type -> hyapp.user.v1.CountryResponse
|
||
26, // 61: hyapp.user.v1.RegionAdminService.CreateRegion:output_type -> hyapp.user.v1.RegionResponse
|
||
21, // 62: hyapp.user.v1.RegionAdminService.ListRegions:output_type -> hyapp.user.v1.ListRegionsResponse
|
||
26, // 63: hyapp.user.v1.RegionAdminService.GetRegion:output_type -> hyapp.user.v1.RegionResponse
|
||
26, // 64: hyapp.user.v1.RegionAdminService.UpdateRegion:output_type -> hyapp.user.v1.RegionResponse
|
||
26, // 65: hyapp.user.v1.RegionAdminService.ReplaceRegionCountries:output_type -> hyapp.user.v1.RegionResponse
|
||
26, // 66: hyapp.user.v1.RegionAdminService.DisableRegion:output_type -> hyapp.user.v1.RegionResponse
|
||
29, // 67: hyapp.user.v1.UserIdentityService.GetUserIdentity:output_type -> hyapp.user.v1.GetUserIdentityResponse
|
||
31, // 68: hyapp.user.v1.UserIdentityService.ResolveDisplayUserID:output_type -> hyapp.user.v1.ResolveDisplayUserIDResponse
|
||
33, // 69: hyapp.user.v1.UserIdentityService.ChangeDisplayUserID:output_type -> hyapp.user.v1.ChangeDisplayUserIDResponse
|
||
35, // 70: hyapp.user.v1.UserIdentityService.ApplyPrettyDisplayUserID:output_type -> hyapp.user.v1.ApplyPrettyDisplayUserIDResponse
|
||
37, // 71: hyapp.user.v1.UserIdentityService.ExpirePrettyDisplayUserID:output_type -> hyapp.user.v1.ExpirePrettyDisplayUserIDResponse
|
||
53, // [53:72] is the sub-list for method output_type
|
||
34, // [34:53] is the sub-list for method input_type
|
||
34, // [34:34] is the sub-list for extension type_name
|
||
34, // [34:34] is the sub-list for extension extendee
|
||
0, // [0:34] is the sub-list for field type_name
|
||
}
|
||
|
||
func init() { file_api_proto_user_v1_user_proto_init() }
|
||
func file_api_proto_user_v1_user_proto_init() {
|
||
if File_api_proto_user_v1_user_proto != nil {
|
||
return
|
||
}
|
||
file_api_proto_user_v1_user_proto_msgTypes[6].OneofWrappers = []any{}
|
||
type x struct{}
|
||
out := protoimpl.TypeBuilder{
|
||
File: protoimpl.DescBuilder{
|
||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_api_proto_user_v1_user_proto_rawDesc), len(file_api_proto_user_v1_user_proto_rawDesc)),
|
||
NumEnums: 1,
|
||
NumMessages: 38,
|
||
NumExtensions: 0,
|
||
NumServices: 4,
|
||
},
|
||
GoTypes: file_api_proto_user_v1_user_proto_goTypes,
|
||
DependencyIndexes: file_api_proto_user_v1_user_proto_depIdxs,
|
||
EnumInfos: file_api_proto_user_v1_user_proto_enumTypes,
|
||
MessageInfos: file_api_proto_user_v1_user_proto_msgTypes,
|
||
}.Build()
|
||
File_api_proto_user_v1_user_proto = out.File
|
||
file_api_proto_user_v1_user_proto_goTypes = nil
|
||
file_api_proto_user_v1_user_proto_depIdxs = nil
|
||
}
|