1033 lines
30 KiB
Go
1033 lines
30 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v3.19.4
|
|
// source: user/user.proto
|
|
|
|
package user
|
|
|
|
import (
|
|
_ "google.golang.org/genproto/googleapis/api/annotations"
|
|
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)
|
|
)
|
|
|
|
type Response struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
|
|
Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
|
|
Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Response) Reset() {
|
|
*x = Response{}
|
|
mi := &file_user_user_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Response) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Response) ProtoMessage() {}
|
|
|
|
func (x *Response) ProtoReflect() protoreflect.Message {
|
|
mi := &file_user_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 Response.ProtoReflect.Descriptor instead.
|
|
func (*Response) Descriptor() ([]byte, []int) {
|
|
return file_user_user_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *Response) GetCode() int32 {
|
|
if x != nil {
|
|
return x.Code
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Response) GetMsg() string {
|
|
if x != nil {
|
|
return x.Msg
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Response) GetData() string {
|
|
if x != nil {
|
|
return x.Data
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// 统一登录:grant_type = openid | password | sms
|
|
type LoginReq struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ClientCode string `protobuf:"bytes,1,opt,name=client_code,json=clientCode,proto3" json:"client_code,omitempty"` // 端编码,如 user_skin / user_o2 / sale_beauty
|
|
GrantType string `protobuf:"bytes,2,opt,name=grant_type,json=grantType,proto3" json:"grant_type,omitempty"` // openid | password | sms
|
|
Code string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"` // grant_type=openid 时传微信 login code
|
|
Mobile string `protobuf:"bytes,4,opt,name=mobile,proto3" json:"mobile,omitempty"` // grant_type=password|sms
|
|
Password string `protobuf:"bytes,5,opt,name=password,proto3" json:"password,omitempty"` // grant_type=password
|
|
SmsCode string `protobuf:"bytes,6,opt,name=sms_code,json=smsCode,proto3" json:"sms_code,omitempty"` // grant_type=sms
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *LoginReq) Reset() {
|
|
*x = LoginReq{}
|
|
mi := &file_user_user_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *LoginReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*LoginReq) ProtoMessage() {}
|
|
|
|
func (x *LoginReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_user_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 LoginReq.ProtoReflect.Descriptor instead.
|
|
func (*LoginReq) Descriptor() ([]byte, []int) {
|
|
return file_user_user_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *LoginReq) GetClientCode() string {
|
|
if x != nil {
|
|
return x.ClientCode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LoginReq) GetGrantType() string {
|
|
if x != nil {
|
|
return x.GrantType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LoginReq) GetCode() string {
|
|
if x != nil {
|
|
return x.Code
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LoginReq) GetMobile() string {
|
|
if x != nil {
|
|
return x.Mobile
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LoginReq) GetPassword() string {
|
|
if x != nil {
|
|
return x.Password
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LoginReq) GetSmsCode() string {
|
|
if x != nil {
|
|
return x.SmsCode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// 管理端用户列表
|
|
type UserItemsReq struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Mobile string `protobuf:"bytes,1,opt,name=mobile,proto3" json:"mobile,omitempty"`
|
|
Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"`
|
|
Size int32 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UserItemsReq) Reset() {
|
|
*x = UserItemsReq{}
|
|
mi := &file_user_user_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UserItemsReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UserItemsReq) ProtoMessage() {}
|
|
|
|
func (x *UserItemsReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_user_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 UserItemsReq.ProtoReflect.Descriptor instead.
|
|
func (*UserItemsReq) Descriptor() ([]byte, []int) {
|
|
return file_user_user_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *UserItemsReq) GetMobile() string {
|
|
if x != nil {
|
|
return x.Mobile
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UserItemsReq) GetPage() int32 {
|
|
if x != nil {
|
|
return x.Page
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UserItemsReq) GetSize() int32 {
|
|
if x != nil {
|
|
return x.Size
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// 管理端修改用户状态
|
|
type UserStatusReq struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UserStatusReq) Reset() {
|
|
*x = UserStatusReq{}
|
|
mi := &file_user_user_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UserStatusReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UserStatusReq) ProtoMessage() {}
|
|
|
|
func (x *UserStatusReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_user_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 UserStatusReq.ProtoReflect.Descriptor instead.
|
|
func (*UserStatusReq) Descriptor() ([]byte, []int) {
|
|
return file_user_user_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *UserStatusReq) GetId() int64 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UserStatusReq) GetStatus() int32 {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type EnsureBizIdentityReq struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Mobile string `protobuf:"bytes,1,opt,name=mobile,proto3" json:"mobile,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
Avatar string `protobuf:"bytes,3,opt,name=avatar,proto3" json:"avatar,omitempty"`
|
|
Gender uint32 `protobuf:"varint,4,opt,name=gender,proto3" json:"gender,omitempty"`
|
|
Birthday string `protobuf:"bytes,5,opt,name=birthday,proto3" json:"birthday,omitempty"`
|
|
ClientCode string `protobuf:"bytes,6,opt,name=client_code,json=clientCode,proto3" json:"client_code,omitempty"`
|
|
CredentialType string `protobuf:"bytes,7,opt,name=credential_type,json=credentialType,proto3" json:"credential_type,omitempty"`
|
|
Identifier string `protobuf:"bytes,8,opt,name=identifier,proto3" json:"identifier,omitempty"`
|
|
Secret string `protobuf:"bytes,9,opt,name=secret,proto3" json:"secret,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *EnsureBizIdentityReq) Reset() {
|
|
*x = EnsureBizIdentityReq{}
|
|
mi := &file_user_user_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *EnsureBizIdentityReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*EnsureBizIdentityReq) ProtoMessage() {}
|
|
|
|
func (x *EnsureBizIdentityReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_user_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 EnsureBizIdentityReq.ProtoReflect.Descriptor instead.
|
|
func (*EnsureBizIdentityReq) Descriptor() ([]byte, []int) {
|
|
return file_user_user_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *EnsureBizIdentityReq) GetMobile() string {
|
|
if x != nil {
|
|
return x.Mobile
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *EnsureBizIdentityReq) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *EnsureBizIdentityReq) GetAvatar() string {
|
|
if x != nil {
|
|
return x.Avatar
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *EnsureBizIdentityReq) GetGender() uint32 {
|
|
if x != nil {
|
|
return x.Gender
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *EnsureBizIdentityReq) GetBirthday() string {
|
|
if x != nil {
|
|
return x.Birthday
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *EnsureBizIdentityReq) GetClientCode() string {
|
|
if x != nil {
|
|
return x.ClientCode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *EnsureBizIdentityReq) GetCredentialType() string {
|
|
if x != nil {
|
|
return x.CredentialType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *EnsureBizIdentityReq) GetIdentifier() string {
|
|
if x != nil {
|
|
return x.Identifier
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *EnsureBizIdentityReq) GetSecret() string {
|
|
if x != nil {
|
|
return x.Secret
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type EnsureBizIdentityData struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
Created bool `protobuf:"varint,2,opt,name=created,proto3" json:"created,omitempty"`
|
|
Mobile string `protobuf:"bytes,3,opt,name=mobile,proto3" json:"mobile,omitempty"`
|
|
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *EnsureBizIdentityData) Reset() {
|
|
*x = EnsureBizIdentityData{}
|
|
mi := &file_user_user_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *EnsureBizIdentityData) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*EnsureBizIdentityData) ProtoMessage() {}
|
|
|
|
func (x *EnsureBizIdentityData) ProtoReflect() protoreflect.Message {
|
|
mi := &file_user_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 EnsureBizIdentityData.ProtoReflect.Descriptor instead.
|
|
func (*EnsureBizIdentityData) Descriptor() ([]byte, []int) {
|
|
return file_user_user_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *EnsureBizIdentityData) GetUserId() int64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *EnsureBizIdentityData) GetCreated() bool {
|
|
if x != nil {
|
|
return x.Created
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *EnsureBizIdentityData) GetMobile() string {
|
|
if x != nil {
|
|
return x.Mobile
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *EnsureBizIdentityData) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type UsersByIdsReq struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UsersByIdsReq) Reset() {
|
|
*x = UsersByIdsReq{}
|
|
mi := &file_user_user_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UsersByIdsReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UsersByIdsReq) ProtoMessage() {}
|
|
|
|
func (x *UsersByIdsReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_user_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 UsersByIdsReq.ProtoReflect.Descriptor instead.
|
|
func (*UsersByIdsReq) Descriptor() ([]byte, []int) {
|
|
return file_user_user_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *UsersByIdsReq) GetIds() []int64 {
|
|
if x != nil {
|
|
return x.Ids
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type UserBriefItem struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Mobile string `protobuf:"bytes,2,opt,name=mobile,proto3" json:"mobile,omitempty"`
|
|
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
|
|
Avatar string `protobuf:"bytes,4,opt,name=avatar,proto3" json:"avatar,omitempty"`
|
|
Gender uint32 `protobuf:"varint,5,opt,name=gender,proto3" json:"gender,omitempty"`
|
|
Birthday string `protobuf:"bytes,6,opt,name=birthday,proto3" json:"birthday,omitempty"`
|
|
Status uint32 `protobuf:"varint,7,opt,name=status,proto3" json:"status,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UserBriefItem) Reset() {
|
|
*x = UserBriefItem{}
|
|
mi := &file_user_user_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UserBriefItem) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UserBriefItem) ProtoMessage() {}
|
|
|
|
func (x *UserBriefItem) ProtoReflect() protoreflect.Message {
|
|
mi := &file_user_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 UserBriefItem.ProtoReflect.Descriptor instead.
|
|
func (*UserBriefItem) Descriptor() ([]byte, []int) {
|
|
return file_user_user_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *UserBriefItem) GetId() int64 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UserBriefItem) GetMobile() string {
|
|
if x != nil {
|
|
return x.Mobile
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UserBriefItem) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UserBriefItem) GetAvatar() string {
|
|
if x != nil {
|
|
return x.Avatar
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UserBriefItem) GetGender() uint32 {
|
|
if x != nil {
|
|
return x.Gender
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UserBriefItem) GetBirthday() string {
|
|
if x != nil {
|
|
return x.Birthday
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UserBriefItem) GetStatus() uint32 {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UsersByIdsData struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Items []*UserBriefItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UsersByIdsData) Reset() {
|
|
*x = UsersByIdsData{}
|
|
mi := &file_user_user_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UsersByIdsData) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UsersByIdsData) ProtoMessage() {}
|
|
|
|
func (x *UsersByIdsData) ProtoReflect() protoreflect.Message {
|
|
mi := &file_user_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 UsersByIdsData.ProtoReflect.Descriptor instead.
|
|
func (*UsersByIdsData) Descriptor() ([]byte, []int) {
|
|
return file_user_user_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *UsersByIdsData) GetItems() []*UserBriefItem {
|
|
if x != nil {
|
|
return x.Items
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type UpdateMobileReq struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
Mobile string `protobuf:"bytes,2,opt,name=mobile,proto3" json:"mobile,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateMobileReq) Reset() {
|
|
*x = UpdateMobileReq{}
|
|
mi := &file_user_user_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateMobileReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateMobileReq) ProtoMessage() {}
|
|
|
|
func (x *UpdateMobileReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_user_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 UpdateMobileReq.ProtoReflect.Descriptor instead.
|
|
func (*UpdateMobileReq) Descriptor() ([]byte, []int) {
|
|
return file_user_user_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *UpdateMobileReq) GetUserId() int64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UpdateMobileReq) GetMobile() string {
|
|
if x != nil {
|
|
return x.Mobile
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type UpdateMobileData struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
Mobile string `protobuf:"bytes,2,opt,name=mobile,proto3" json:"mobile,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateMobileData) Reset() {
|
|
*x = UpdateMobileData{}
|
|
mi := &file_user_user_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateMobileData) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateMobileData) ProtoMessage() {}
|
|
|
|
func (x *UpdateMobileData) ProtoReflect() protoreflect.Message {
|
|
mi := &file_user_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 UpdateMobileData.ProtoReflect.Descriptor instead.
|
|
func (*UpdateMobileData) Descriptor() ([]byte, []int) {
|
|
return file_user_user_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *UpdateMobileData) GetUserId() int64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UpdateMobileData) GetMobile() string {
|
|
if x != nil {
|
|
return x.Mobile
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type RevokeBizClientReq struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
ClientCode string `protobuf:"bytes,2,opt,name=client_code,json=clientCode,proto3" json:"client_code,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RevokeBizClientReq) Reset() {
|
|
*x = RevokeBizClientReq{}
|
|
mi := &file_user_user_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RevokeBizClientReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RevokeBizClientReq) ProtoMessage() {}
|
|
|
|
func (x *RevokeBizClientReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_user_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 RevokeBizClientReq.ProtoReflect.Descriptor instead.
|
|
func (*RevokeBizClientReq) Descriptor() ([]byte, []int) {
|
|
return file_user_user_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *RevokeBizClientReq) GetUserId() int64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *RevokeBizClientReq) GetClientCode() string {
|
|
if x != nil {
|
|
return x.ClientCode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type RevokeBizClientData struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Revoked bool `protobuf:"varint,1,opt,name=revoked,proto3" json:"revoked,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RevokeBizClientData) Reset() {
|
|
*x = RevokeBizClientData{}
|
|
mi := &file_user_user_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RevokeBizClientData) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RevokeBizClientData) ProtoMessage() {}
|
|
|
|
func (x *RevokeBizClientData) ProtoReflect() protoreflect.Message {
|
|
mi := &file_user_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 RevokeBizClientData.ProtoReflect.Descriptor instead.
|
|
func (*RevokeBizClientData) Descriptor() ([]byte, []int) {
|
|
return file_user_user_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *RevokeBizClientData) GetRevoked() bool {
|
|
if x != nil {
|
|
return x.Revoked
|
|
}
|
|
return false
|
|
}
|
|
|
|
type InfoReq struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *InfoReq) Reset() {
|
|
*x = InfoReq{}
|
|
mi := &file_user_user_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *InfoReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*InfoReq) ProtoMessage() {}
|
|
|
|
func (x *InfoReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_user_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 InfoReq.ProtoReflect.Descriptor instead.
|
|
func (*InfoReq) Descriptor() ([]byte, []int) {
|
|
return file_user_user_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
var File_user_user_proto protoreflect.FileDescriptor
|
|
|
|
const file_user_user_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x0fuser/user.proto\x12\x04user\x1a\x1cgoogle/api/annotations.proto\"D\n" +
|
|
"\bResponse\x12\x12\n" +
|
|
"\x04code\x18\x01 \x01(\x05R\x04code\x12\x10\n" +
|
|
"\x03msg\x18\x02 \x01(\tR\x03msg\x12\x12\n" +
|
|
"\x04data\x18\x03 \x01(\tR\x04data\"\xad\x01\n" +
|
|
"\bLoginReq\x12\x1f\n" +
|
|
"\vclient_code\x18\x01 \x01(\tR\n" +
|
|
"clientCode\x12\x1d\n" +
|
|
"\n" +
|
|
"grant_type\x18\x02 \x01(\tR\tgrantType\x12\x12\n" +
|
|
"\x04code\x18\x03 \x01(\tR\x04code\x12\x16\n" +
|
|
"\x06mobile\x18\x04 \x01(\tR\x06mobile\x12\x1a\n" +
|
|
"\bpassword\x18\x05 \x01(\tR\bpassword\x12\x19\n" +
|
|
"\bsms_code\x18\x06 \x01(\tR\asmsCode\"N\n" +
|
|
"\fUserItemsReq\x12\x16\n" +
|
|
"\x06mobile\x18\x01 \x01(\tR\x06mobile\x12\x12\n" +
|
|
"\x04page\x18\x02 \x01(\x05R\x04page\x12\x12\n" +
|
|
"\x04size\x18\x03 \x01(\x05R\x04size\"7\n" +
|
|
"\rUserStatusReq\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x16\n" +
|
|
"\x06status\x18\x02 \x01(\x05R\x06status\"\x90\x02\n" +
|
|
"\x14EnsureBizIdentityReq\x12\x16\n" +
|
|
"\x06mobile\x18\x01 \x01(\tR\x06mobile\x12\x12\n" +
|
|
"\x04name\x18\x02 \x01(\tR\x04name\x12\x16\n" +
|
|
"\x06avatar\x18\x03 \x01(\tR\x06avatar\x12\x16\n" +
|
|
"\x06gender\x18\x04 \x01(\rR\x06gender\x12\x1a\n" +
|
|
"\bbirthday\x18\x05 \x01(\tR\bbirthday\x12\x1f\n" +
|
|
"\vclient_code\x18\x06 \x01(\tR\n" +
|
|
"clientCode\x12'\n" +
|
|
"\x0fcredential_type\x18\a \x01(\tR\x0ecredentialType\x12\x1e\n" +
|
|
"\n" +
|
|
"identifier\x18\b \x01(\tR\n" +
|
|
"identifier\x12\x16\n" +
|
|
"\x06secret\x18\t \x01(\tR\x06secret\"v\n" +
|
|
"\x15EnsureBizIdentityData\x12\x17\n" +
|
|
"\auser_id\x18\x01 \x01(\x03R\x06userId\x12\x18\n" +
|
|
"\acreated\x18\x02 \x01(\bR\acreated\x12\x16\n" +
|
|
"\x06mobile\x18\x03 \x01(\tR\x06mobile\x12\x12\n" +
|
|
"\x04name\x18\x04 \x01(\tR\x04name\"!\n" +
|
|
"\rUsersByIdsReq\x12\x10\n" +
|
|
"\x03ids\x18\x01 \x03(\x03R\x03ids\"\xaf\x01\n" +
|
|
"\rUserBriefItem\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x16\n" +
|
|
"\x06mobile\x18\x02 \x01(\tR\x06mobile\x12\x12\n" +
|
|
"\x04name\x18\x03 \x01(\tR\x04name\x12\x16\n" +
|
|
"\x06avatar\x18\x04 \x01(\tR\x06avatar\x12\x16\n" +
|
|
"\x06gender\x18\x05 \x01(\rR\x06gender\x12\x1a\n" +
|
|
"\bbirthday\x18\x06 \x01(\tR\bbirthday\x12\x16\n" +
|
|
"\x06status\x18\a \x01(\rR\x06status\";\n" +
|
|
"\x0eUsersByIdsData\x12)\n" +
|
|
"\x05items\x18\x01 \x03(\v2\x13.user.UserBriefItemR\x05items\"B\n" +
|
|
"\x0fUpdateMobileReq\x12\x17\n" +
|
|
"\auser_id\x18\x01 \x01(\x03R\x06userId\x12\x16\n" +
|
|
"\x06mobile\x18\x02 \x01(\tR\x06mobile\"C\n" +
|
|
"\x10UpdateMobileData\x12\x17\n" +
|
|
"\auser_id\x18\x01 \x01(\x03R\x06userId\x12\x16\n" +
|
|
"\x06mobile\x18\x02 \x01(\tR\x06mobile\"N\n" +
|
|
"\x12RevokeBizClientReq\x12\x17\n" +
|
|
"\auser_id\x18\x01 \x01(\x03R\x06userId\x12\x1f\n" +
|
|
"\vclient_code\x18\x02 \x01(\tR\n" +
|
|
"clientCode\"/\n" +
|
|
"\x13RevokeBizClientData\x12\x18\n" +
|
|
"\arevoked\x18\x01 \x01(\bR\arevoked\"\t\n" +
|
|
"\aInfoReq2\xc3\x04\n" +
|
|
"\x04User\x12A\n" +
|
|
"\x05Login\x12\x0e.user.LoginReq\x1a\x0e.user.Response\"\x18\x82\xd3\xe4\x93\x02\x12:\x01*\"\r/api/v3/login\x12C\n" +
|
|
"\x04Info\x12\r.user.InfoReq\x1a\x0e.user.Response\"\x1c\x82\xd3\xe4\x93\x02\x16:\x01*\x12\x11/api/v3/user/info\x12P\n" +
|
|
"\tUserItems\x12\x12.user.UserItemsReq\x1a\x0e.user.Response\"\x1f\x82\xd3\xe4\x93\x02\x19:\x01*\x12\x14/admin/v3/user/items\x12S\n" +
|
|
"\n" +
|
|
"UserStatus\x12\x13.user.UserStatusReq\x1a\x0e.user.Response\" \x82\xd3\xe4\x93\x02\x1a:\x01*\x1a\x15/admin/v3/user/status\x12L\n" +
|
|
"\x11EnsureBizIdentity\x12\x1a.user.EnsureBizIdentityReq\x1a\x1b.user.EnsureBizIdentityData\x127\n" +
|
|
"\n" +
|
|
"UsersByIds\x12\x13.user.UsersByIdsReq\x1a\x14.user.UsersByIdsData\x12=\n" +
|
|
"\fUpdateMobile\x12\x15.user.UpdateMobileReq\x1a\x16.user.UpdateMobileData\x12F\n" +
|
|
"\x0fRevokeBizClient\x12\x18.user.RevokeBizClientReq\x1a\x19.user.RevokeBizClientDataB\x18Z\x16lone-services/rpc/userb\x06proto3"
|
|
|
|
var (
|
|
file_user_user_proto_rawDescOnce sync.Once
|
|
file_user_user_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_user_user_proto_rawDescGZIP() []byte {
|
|
file_user_user_proto_rawDescOnce.Do(func() {
|
|
file_user_user_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_user_user_proto_rawDesc), len(file_user_user_proto_rawDesc)))
|
|
})
|
|
return file_user_user_proto_rawDescData
|
|
}
|
|
|
|
var file_user_user_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
|
|
var file_user_user_proto_goTypes = []any{
|
|
(*Response)(nil), // 0: user.Response
|
|
(*LoginReq)(nil), // 1: user.LoginReq
|
|
(*UserItemsReq)(nil), // 2: user.UserItemsReq
|
|
(*UserStatusReq)(nil), // 3: user.UserStatusReq
|
|
(*EnsureBizIdentityReq)(nil), // 4: user.EnsureBizIdentityReq
|
|
(*EnsureBizIdentityData)(nil), // 5: user.EnsureBizIdentityData
|
|
(*UsersByIdsReq)(nil), // 6: user.UsersByIdsReq
|
|
(*UserBriefItem)(nil), // 7: user.UserBriefItem
|
|
(*UsersByIdsData)(nil), // 8: user.UsersByIdsData
|
|
(*UpdateMobileReq)(nil), // 9: user.UpdateMobileReq
|
|
(*UpdateMobileData)(nil), // 10: user.UpdateMobileData
|
|
(*RevokeBizClientReq)(nil), // 11: user.RevokeBizClientReq
|
|
(*RevokeBizClientData)(nil), // 12: user.RevokeBizClientData
|
|
(*InfoReq)(nil), // 13: user.InfoReq
|
|
}
|
|
var file_user_user_proto_depIdxs = []int32{
|
|
7, // 0: user.UsersByIdsData.items:type_name -> user.UserBriefItem
|
|
1, // 1: user.User.Login:input_type -> user.LoginReq
|
|
13, // 2: user.User.Info:input_type -> user.InfoReq
|
|
2, // 3: user.User.UserItems:input_type -> user.UserItemsReq
|
|
3, // 4: user.User.UserStatus:input_type -> user.UserStatusReq
|
|
4, // 5: user.User.EnsureBizIdentity:input_type -> user.EnsureBizIdentityReq
|
|
6, // 6: user.User.UsersByIds:input_type -> user.UsersByIdsReq
|
|
9, // 7: user.User.UpdateMobile:input_type -> user.UpdateMobileReq
|
|
11, // 8: user.User.RevokeBizClient:input_type -> user.RevokeBizClientReq
|
|
0, // 9: user.User.Login:output_type -> user.Response
|
|
0, // 10: user.User.Info:output_type -> user.Response
|
|
0, // 11: user.User.UserItems:output_type -> user.Response
|
|
0, // 12: user.User.UserStatus:output_type -> user.Response
|
|
5, // 13: user.User.EnsureBizIdentity:output_type -> user.EnsureBizIdentityData
|
|
8, // 14: user.User.UsersByIds:output_type -> user.UsersByIdsData
|
|
10, // 15: user.User.UpdateMobile:output_type -> user.UpdateMobileData
|
|
12, // 16: user.User.RevokeBizClient:output_type -> user.RevokeBizClientData
|
|
9, // [9:17] is the sub-list for method output_type
|
|
1, // [1:9] is the sub-list for method input_type
|
|
1, // [1:1] is the sub-list for extension type_name
|
|
1, // [1:1] is the sub-list for extension extendee
|
|
0, // [0:1] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_user_user_proto_init() }
|
|
func file_user_user_proto_init() {
|
|
if File_user_user_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_user_user_proto_rawDesc), len(file_user_user_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 14,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_user_user_proto_goTypes,
|
|
DependencyIndexes: file_user_user_proto_depIdxs,
|
|
MessageInfos: file_user_user_proto_msgTypes,
|
|
}.Build()
|
|
File_user_user_proto = out.File
|
|
file_user_user_proto_goTypes = nil
|
|
file_user_user_proto_depIdxs = nil
|
|
}
|