feat: user items
This commit is contained in:
+140
-10
@@ -1,7 +1,7 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.11
|
||||
// protoc v4.25.8
|
||||
// protoc v3.19.4
|
||||
// source: user/user.proto
|
||||
|
||||
package user
|
||||
@@ -305,6 +305,120 @@ func (x *LoginReq) GetOpenid() string {
|
||||
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[4]
|
||||
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[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 UserItemsReq.ProtoReflect.Descriptor instead.
|
||||
func (*UserItemsReq) Descriptor() ([]byte, []int) {
|
||||
return file_user_user_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
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[5]
|
||||
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[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 UserStatusReq.ProtoReflect.Descriptor instead.
|
||||
func (*UserStatusReq) Descriptor() ([]byte, []int) {
|
||||
return file_user_user_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
var File_user_user_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_user_user_proto_rawDesc = "" +
|
||||
@@ -330,11 +444,21 @@ const file_user_user_proto_rawDesc = "" +
|
||||
"\x04code\x18\x04 \x01(\tR\x04code\x12\x15\n" +
|
||||
"\x06app_id\x18\x05 \x01(\rR\x05appId\"\"\n" +
|
||||
"\bLoginReq\x12\x16\n" +
|
||||
"\x06openid\x18\x01 \x01(\tR\x06openid2\x81\x02\n" +
|
||||
"\x06openid\x18\x01 \x01(\tR\x06openid\"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\x06status2\xa8\x03\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/loginB\x18Z\x16lone-services/rpc/userb\x06proto3"
|
||||
"\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"
|
||||
|
||||
var (
|
||||
file_user_user_proto_rawDescOnce sync.Once
|
||||
@@ -348,22 +472,28 @@ func file_user_user_proto_rawDescGZIP() []byte {
|
||||
return file_user_user_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_user_user_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
||||
var file_user_user_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
||||
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
|
||||
}
|
||||
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
|
||||
0, // 3: user.User.Register:output_type -> user.Response
|
||||
0, // 4: user.User.RegisterByUser:output_type -> user.Response
|
||||
0, // 5: user.User.Login:output_type -> user.Response
|
||||
3, // [3:6] is the sub-list for method output_type
|
||||
0, // [0:3] is the sub-list for method input_type
|
||||
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
|
||||
@@ -380,7 +510,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: 4,
|
||||
NumMessages: 6,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user