feat: sale add create user
This commit is contained in:
+652
-28
@@ -7,12 +7,13 @@
|
||||
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"
|
||||
|
||||
_ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -419,6 +420,564 @@ func (x *UserStatusReq) GetStatus() int32 {
|
||||
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"` // 如 sale_beauty / store_beauty / store_pos
|
||||
CredentialType string `protobuf:"bytes,7,opt,name=credential_type,json=credentialType,proto3" json:"credential_type,omitempty"` // password / wecom / openid ...
|
||||
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[6]
|
||||
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[6]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
func (*EnsureBizIdentityReq) Descriptor() ([]byte, []int) {
|
||||
return file_user_user_proto_rawDescGZIP(), []int{6}
|
||||
}
|
||||
|
||||
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"` // 是否新建了 users
|
||||
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[7]
|
||||
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[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 EnsureBizIdentityData.ProtoReflect.Descriptor instead.
|
||||
func (*EnsureBizIdentityData) Descriptor() ([]byte, []int) {
|
||||
return file_user_user_proto_rawDescGZIP(), []int{7}
|
||||
}
|
||||
|
||||
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 ""
|
||||
}
|
||||
|
||||
// 内部:按 ids 批量查用户基础信息
|
||||
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[8]
|
||||
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[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 UsersByIdsReq.ProtoReflect.Descriptor instead.
|
||||
func (*UsersByIdsReq) Descriptor() ([]byte, []int) {
|
||||
return file_user_user_proto_rawDescGZIP(), []int{8}
|
||||
}
|
||||
|
||||
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[9]
|
||||
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[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 UserBriefItem.ProtoReflect.Descriptor instead.
|
||||
func (*UserBriefItem) Descriptor() ([]byte, []int) {
|
||||
return file_user_user_proto_rawDescGZIP(), []int{9}
|
||||
}
|
||||
|
||||
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[10]
|
||||
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[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 UsersByIdsData.ProtoReflect.Descriptor instead.
|
||||
func (*UsersByIdsData) Descriptor() ([]byte, []int) {
|
||||
return file_user_user_proto_rawDescGZIP(), []int{10}
|
||||
}
|
||||
|
||||
func (x *UsersByIdsData) GetItems() []*UserBriefItem {
|
||||
if x != nil {
|
||||
return x.Items
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// 内部:修改用户手机号(同步凭证 identifier)
|
||||
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[11]
|
||||
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[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 UpdateMobileReq.ProtoReflect.Descriptor instead.
|
||||
func (*UpdateMobileReq) Descriptor() ([]byte, []int) {
|
||||
return file_user_user_proto_rawDescGZIP(), []int{11}
|
||||
}
|
||||
|
||||
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[12]
|
||||
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[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 UpdateMobileData.ProtoReflect.Descriptor instead.
|
||||
func (*UpdateMobileData) Descriptor() ([]byte, []int) {
|
||||
return file_user_user_proto_rawDescGZIP(), []int{12}
|
||||
}
|
||||
|
||||
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[13]
|
||||
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[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 RevokeBizClientReq.ProtoReflect.Descriptor instead.
|
||||
func (*RevokeBizClientReq) Descriptor() ([]byte, []int) {
|
||||
return file_user_user_proto_rawDescGZIP(), []int{13}
|
||||
}
|
||||
|
||||
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[14]
|
||||
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[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 RevokeBizClientData.ProtoReflect.Descriptor instead.
|
||||
func (*RevokeBizClientData) Descriptor() ([]byte, []int) {
|
||||
return file_user_user_proto_rawDescGZIP(), []int{14}
|
||||
}
|
||||
|
||||
func (x *RevokeBizClientData) GetRevoked() bool {
|
||||
if x != nil {
|
||||
return x.Revoked
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
var File_user_user_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_user_user_proto_rawDesc = "" +
|
||||
@@ -451,14 +1010,61 @@ const file_user_user_proto_rawDesc = "" +
|
||||
"\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\x06status2\xa8\x03\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\arevoked2\xb6\x05\n" +
|
||||
"\x04User\x12O\n" +
|
||||
"\bRegister\x12\x11.user.RegisterReq\x1a\x0e.user.Response\" \x82\xd3\xe4\x93\x02\x1a:\x01*\"\x15/customer/v3/register\x12`\n" +
|
||||
"\x0eRegisterByUser\x12\x17.user.RegisterByUserReq\x1a\x0e.user.Response\"%\x82\xd3\xe4\x93\x02\x1f:\x01*\"\x1a/customer/v3/register/user\x12F\n" +
|
||||
"\x05Login\x12\x0e.user.LoginReq\x1a\x0e.user.Response\"\x1d\x82\xd3\xe4\x93\x02\x17:\x01*\"\x12/customer/v3/login\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/statusB\x18Z\x16lone-services/rpc/userb\x06proto3"
|
||||
"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
|
||||
@@ -472,31 +1078,49 @@ func file_user_user_proto_rawDescGZIP() []byte {
|
||||
return file_user_user_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_user_user_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
||||
var file_user_user_proto_msgTypes = make([]protoimpl.MessageInfo, 15)
|
||||
var file_user_user_proto_goTypes = []any{
|
||||
(*Response)(nil), // 0: user.Response
|
||||
(*RegisterReq)(nil), // 1: user.RegisterReq
|
||||
(*RegisterByUserReq)(nil), // 2: user.RegisterByUserReq
|
||||
(*LoginReq)(nil), // 3: user.LoginReq
|
||||
(*UserItemsReq)(nil), // 4: user.UserItemsReq
|
||||
(*UserStatusReq)(nil), // 5: user.UserStatusReq
|
||||
(*Response)(nil), // 0: user.Response
|
||||
(*RegisterReq)(nil), // 1: user.RegisterReq
|
||||
(*RegisterByUserReq)(nil), // 2: user.RegisterByUserReq
|
||||
(*LoginReq)(nil), // 3: user.LoginReq
|
||||
(*UserItemsReq)(nil), // 4: user.UserItemsReq
|
||||
(*UserStatusReq)(nil), // 5: user.UserStatusReq
|
||||
(*EnsureBizIdentityReq)(nil), // 6: user.EnsureBizIdentityReq
|
||||
(*EnsureBizIdentityData)(nil), // 7: user.EnsureBizIdentityData
|
||||
(*UsersByIdsReq)(nil), // 8: user.UsersByIdsReq
|
||||
(*UserBriefItem)(nil), // 9: user.UserBriefItem
|
||||
(*UsersByIdsData)(nil), // 10: user.UsersByIdsData
|
||||
(*UpdateMobileReq)(nil), // 11: user.UpdateMobileReq
|
||||
(*UpdateMobileData)(nil), // 12: user.UpdateMobileData
|
||||
(*RevokeBizClientReq)(nil), // 13: user.RevokeBizClientReq
|
||||
(*RevokeBizClientData)(nil), // 14: user.RevokeBizClientData
|
||||
}
|
||||
var file_user_user_proto_depIdxs = []int32{
|
||||
1, // 0: user.User.Register:input_type -> user.RegisterReq
|
||||
2, // 1: user.User.RegisterByUser:input_type -> user.RegisterByUserReq
|
||||
3, // 2: user.User.Login:input_type -> user.LoginReq
|
||||
4, // 3: user.User.UserItems:input_type -> user.UserItemsReq
|
||||
5, // 4: user.User.UserStatus:input_type -> user.UserStatusReq
|
||||
0, // 5: user.User.Register:output_type -> user.Response
|
||||
0, // 6: user.User.RegisterByUser:output_type -> user.Response
|
||||
0, // 7: user.User.Login:output_type -> user.Response
|
||||
0, // 8: user.User.UserItems:output_type -> user.Response
|
||||
0, // 9: user.User.UserStatus:output_type -> user.Response
|
||||
5, // [5:10] is the sub-list for method output_type
|
||||
0, // [0:5] is the sub-list for method input_type
|
||||
0, // [0:0] is the sub-list for extension type_name
|
||||
0, // [0:0] is the sub-list for extension extendee
|
||||
0, // [0:0] is the sub-list for field type_name
|
||||
9, // 0: user.UsersByIdsData.items:type_name -> user.UserBriefItem
|
||||
1, // 1: user.User.Register:input_type -> user.RegisterReq
|
||||
2, // 2: user.User.RegisterByUser:input_type -> user.RegisterByUserReq
|
||||
3, // 3: user.User.Login:input_type -> user.LoginReq
|
||||
4, // 4: user.User.UserItems:input_type -> user.UserItemsReq
|
||||
5, // 5: user.User.UserStatus:input_type -> user.UserStatusReq
|
||||
6, // 6: user.User.EnsureBizIdentity:input_type -> user.EnsureBizIdentityReq
|
||||
8, // 7: user.User.UsersByIds:input_type -> user.UsersByIdsReq
|
||||
11, // 8: user.User.UpdateMobile:input_type -> user.UpdateMobileReq
|
||||
13, // 9: user.User.RevokeBizClient:input_type -> user.RevokeBizClientReq
|
||||
0, // 10: user.User.Register:output_type -> user.Response
|
||||
0, // 11: user.User.RegisterByUser:output_type -> user.Response
|
||||
0, // 12: user.User.Login:output_type -> user.Response
|
||||
0, // 13: user.User.UserItems:output_type -> user.Response
|
||||
0, // 14: user.User.UserStatus:output_type -> user.Response
|
||||
7, // 15: user.User.EnsureBizIdentity:output_type -> user.EnsureBizIdentityData
|
||||
10, // 16: user.User.UsersByIds:output_type -> user.UsersByIdsData
|
||||
12, // 17: user.User.UpdateMobile:output_type -> user.UpdateMobileData
|
||||
14, // 18: user.User.RevokeBizClient:output_type -> user.RevokeBizClientData
|
||||
10, // [10:19] is the sub-list for method output_type
|
||||
1, // [1:10] 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() }
|
||||
@@ -510,7 +1134,7 @@ func file_user_user_proto_init() {
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_user_user_proto_rawDesc), len(file_user_user_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 6,
|
||||
NumMessages: 15,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user