feat: analysis admin

This commit is contained in:
zzw
2026-11-02 10:06:20 +08:00
parent 5d20c150f4
commit f77913f8a7
34 changed files with 2302 additions and 139 deletions
+205 -80
View File
@@ -1726,6 +1726,118 @@ func (x *InternalUsersByBizData) GetItems() []*BizUserItem {
return nil
}
type InternalLoginByUserIdReq 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 *InternalLoginByUserIdReq) Reset() {
*x = InternalLoginByUserIdReq{}
mi := &file_user_user_proto_msgTypes[26]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *InternalLoginByUserIdReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InternalLoginByUserIdReq) ProtoMessage() {}
func (x *InternalLoginByUserIdReq) ProtoReflect() protoreflect.Message {
mi := &file_user_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 InternalLoginByUserIdReq.ProtoReflect.Descriptor instead.
func (*InternalLoginByUserIdReq) Descriptor() ([]byte, []int) {
return file_user_user_proto_rawDescGZIP(), []int{26}
}
func (x *InternalLoginByUserIdReq) GetUserId() int64 {
if x != nil {
return x.UserId
}
return 0
}
func (x *InternalLoginByUserIdReq) GetClientCode() string {
if x != nil {
return x.ClientCode
}
return ""
}
type InternalLoginByUserIdData struct {
state protoimpl.MessageState `protogen:"open.v1"`
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
RefreshToken string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
Info string `protobuf:"bytes,3,opt,name=info,proto3" json:"info,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *InternalLoginByUserIdData) Reset() {
*x = InternalLoginByUserIdData{}
mi := &file_user_user_proto_msgTypes[27]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *InternalLoginByUserIdData) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InternalLoginByUserIdData) ProtoMessage() {}
func (x *InternalLoginByUserIdData) ProtoReflect() protoreflect.Message {
mi := &file_user_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 InternalLoginByUserIdData.ProtoReflect.Descriptor instead.
func (*InternalLoginByUserIdData) Descriptor() ([]byte, []int) {
return file_user_user_proto_rawDescGZIP(), []int{27}
}
func (x *InternalLoginByUserIdData) GetAccessToken() string {
if x != nil {
return x.AccessToken
}
return ""
}
func (x *InternalLoginByUserIdData) GetRefreshToken() string {
if x != nil {
return x.RefreshToken
}
return ""
}
func (x *InternalLoginByUserIdData) GetInfo() string {
if x != nil {
return x.Info
}
return ""
}
type GetOpenidReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
@@ -1735,7 +1847,7 @@ type GetOpenidReq struct {
func (x *GetOpenidReq) Reset() {
*x = GetOpenidReq{}
mi := &file_user_user_proto_msgTypes[26]
mi := &file_user_user_proto_msgTypes[28]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1747,7 +1859,7 @@ func (x *GetOpenidReq) String() string {
func (*GetOpenidReq) ProtoMessage() {}
func (x *GetOpenidReq) ProtoReflect() protoreflect.Message {
mi := &file_user_user_proto_msgTypes[26]
mi := &file_user_user_proto_msgTypes[28]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1760,7 +1872,7 @@ func (x *GetOpenidReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetOpenidReq.ProtoReflect.Descriptor instead.
func (*GetOpenidReq) Descriptor() ([]byte, []int) {
return file_user_user_proto_rawDescGZIP(), []int{26}
return file_user_user_proto_rawDescGZIP(), []int{28}
}
func (x *GetOpenidReq) GetCode() string {
@@ -1779,7 +1891,7 @@ type BindMobileReq struct {
func (x *BindMobileReq) Reset() {
*x = BindMobileReq{}
mi := &file_user_user_proto_msgTypes[27]
mi := &file_user_user_proto_msgTypes[29]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1791,7 +1903,7 @@ func (x *BindMobileReq) String() string {
func (*BindMobileReq) ProtoMessage() {}
func (x *BindMobileReq) ProtoReflect() protoreflect.Message {
mi := &file_user_user_proto_msgTypes[27]
mi := &file_user_user_proto_msgTypes[29]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1804,7 +1916,7 @@ func (x *BindMobileReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use BindMobileReq.ProtoReflect.Descriptor instead.
func (*BindMobileReq) Descriptor() ([]byte, []int) {
return file_user_user_proto_rawDescGZIP(), []int{27}
return file_user_user_proto_rawDescGZIP(), []int{29}
}
func (x *BindMobileReq) GetCode() string {
@@ -1825,7 +1937,7 @@ type RebindMobileReq struct {
func (x *RebindMobileReq) Reset() {
*x = RebindMobileReq{}
mi := &file_user_user_proto_msgTypes[28]
mi := &file_user_user_proto_msgTypes[30]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1837,7 +1949,7 @@ func (x *RebindMobileReq) String() string {
func (*RebindMobileReq) ProtoMessage() {}
func (x *RebindMobileReq) ProtoReflect() protoreflect.Message {
mi := &file_user_user_proto_msgTypes[28]
mi := &file_user_user_proto_msgTypes[30]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1850,7 +1962,7 @@ func (x *RebindMobileReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use RebindMobileReq.ProtoReflect.Descriptor instead.
func (*RebindMobileReq) Descriptor() ([]byte, []int) {
return file_user_user_proto_rawDescGZIP(), []int{28}
return file_user_user_proto_rawDescGZIP(), []int{30}
}
func (x *RebindMobileReq) GetOldMobile() string {
@@ -1882,7 +1994,7 @@ type InfoReq struct {
func (x *InfoReq) Reset() {
*x = InfoReq{}
mi := &file_user_user_proto_msgTypes[29]
mi := &file_user_user_proto_msgTypes[31]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1894,7 +2006,7 @@ func (x *InfoReq) String() string {
func (*InfoReq) ProtoMessage() {}
func (x *InfoReq) ProtoReflect() protoreflect.Message {
mi := &file_user_user_proto_msgTypes[29]
mi := &file_user_user_proto_msgTypes[31]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1907,7 +2019,7 @@ func (x *InfoReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use InfoReq.ProtoReflect.Descriptor instead.
func (*InfoReq) Descriptor() ([]byte, []int) {
return file_user_user_proto_rawDescGZIP(), []int{29}
return file_user_user_proto_rawDescGZIP(), []int{31}
}
type UpdateReq struct {
@@ -1924,7 +2036,7 @@ type UpdateReq struct {
func (x *UpdateReq) Reset() {
*x = UpdateReq{}
mi := &file_user_user_proto_msgTypes[30]
mi := &file_user_user_proto_msgTypes[32]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1936,7 +2048,7 @@ func (x *UpdateReq) String() string {
func (*UpdateReq) ProtoMessage() {}
func (x *UpdateReq) ProtoReflect() protoreflect.Message {
mi := &file_user_user_proto_msgTypes[30]
mi := &file_user_user_proto_msgTypes[32]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1949,7 +2061,7 @@ func (x *UpdateReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use UpdateReq.ProtoReflect.Descriptor instead.
func (*UpdateReq) Descriptor() ([]byte, []int) {
return file_user_user_proto_rawDescGZIP(), []int{30}
return file_user_user_proto_rawDescGZIP(), []int{32}
}
func (x *UpdateReq) GetName() string {
@@ -2004,7 +2116,7 @@ type PasswordReq struct {
func (x *PasswordReq) Reset() {
*x = PasswordReq{}
mi := &file_user_user_proto_msgTypes[31]
mi := &file_user_user_proto_msgTypes[33]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2016,7 +2128,7 @@ func (x *PasswordReq) String() string {
func (*PasswordReq) ProtoMessage() {}
func (x *PasswordReq) ProtoReflect() protoreflect.Message {
mi := &file_user_user_proto_msgTypes[31]
mi := &file_user_user_proto_msgTypes[33]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2029,7 +2141,7 @@ func (x *PasswordReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use PasswordReq.ProtoReflect.Descriptor instead.
func (*PasswordReq) Descriptor() ([]byte, []int) {
return file_user_user_proto_rawDescGZIP(), []int{31}
return file_user_user_proto_rawDescGZIP(), []int{33}
}
func (x *PasswordReq) GetPassword() string {
@@ -2057,7 +2169,7 @@ type ClientReq struct {
func (x *ClientReq) Reset() {
*x = ClientReq{}
mi := &file_user_user_proto_msgTypes[32]
mi := &file_user_user_proto_msgTypes[34]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2069,7 +2181,7 @@ func (x *ClientReq) String() string {
func (*ClientReq) ProtoMessage() {}
func (x *ClientReq) ProtoReflect() protoreflect.Message {
mi := &file_user_user_proto_msgTypes[32]
mi := &file_user_user_proto_msgTypes[34]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2082,7 +2194,7 @@ func (x *ClientReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use ClientReq.ProtoReflect.Descriptor instead.
func (*ClientReq) Descriptor() ([]byte, []int) {
return file_user_user_proto_rawDescGZIP(), []int{32}
return file_user_user_proto_rawDescGZIP(), []int{34}
}
func (x *ClientReq) GetName() string {
@@ -2115,7 +2227,7 @@ type GenerateQrcodeReq struct {
func (x *GenerateQrcodeReq) Reset() {
*x = GenerateQrcodeReq{}
mi := &file_user_user_proto_msgTypes[33]
mi := &file_user_user_proto_msgTypes[35]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2127,7 +2239,7 @@ func (x *GenerateQrcodeReq) String() string {
func (*GenerateQrcodeReq) ProtoMessage() {}
func (x *GenerateQrcodeReq) ProtoReflect() protoreflect.Message {
mi := &file_user_user_proto_msgTypes[33]
mi := &file_user_user_proto_msgTypes[35]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2140,7 +2252,7 @@ func (x *GenerateQrcodeReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use GenerateQrcodeReq.ProtoReflect.Descriptor instead.
func (*GenerateQrcodeReq) Descriptor() ([]byte, []int) {
return file_user_user_proto_rawDescGZIP(), []int{33}
return file_user_user_proto_rawDescGZIP(), []int{35}
}
func (x *GenerateQrcodeReq) GetClientCode() string {
@@ -2159,7 +2271,7 @@ type QrcodeScanReq struct {
func (x *QrcodeScanReq) Reset() {
*x = QrcodeScanReq{}
mi := &file_user_user_proto_msgTypes[34]
mi := &file_user_user_proto_msgTypes[36]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2171,7 +2283,7 @@ func (x *QrcodeScanReq) String() string {
func (*QrcodeScanReq) ProtoMessage() {}
func (x *QrcodeScanReq) ProtoReflect() protoreflect.Message {
mi := &file_user_user_proto_msgTypes[34]
mi := &file_user_user_proto_msgTypes[36]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2184,7 +2296,7 @@ func (x *QrcodeScanReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use QrcodeScanReq.ProtoReflect.Descriptor instead.
func (*QrcodeScanReq) Descriptor() ([]byte, []int) {
return file_user_user_proto_rawDescGZIP(), []int{34}
return file_user_user_proto_rawDescGZIP(), []int{36}
}
func (x *QrcodeScanReq) GetSessionId() string {
@@ -2204,7 +2316,7 @@ type QrcodeLoginReq struct {
func (x *QrcodeLoginReq) Reset() {
*x = QrcodeLoginReq{}
mi := &file_user_user_proto_msgTypes[35]
mi := &file_user_user_proto_msgTypes[37]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2216,7 +2328,7 @@ func (x *QrcodeLoginReq) String() string {
func (*QrcodeLoginReq) ProtoMessage() {}
func (x *QrcodeLoginReq) ProtoReflect() protoreflect.Message {
mi := &file_user_user_proto_msgTypes[35]
mi := &file_user_user_proto_msgTypes[37]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2229,7 +2341,7 @@ func (x *QrcodeLoginReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use QrcodeLoginReq.ProtoReflect.Descriptor instead.
func (*QrcodeLoginReq) Descriptor() ([]byte, []int) {
return file_user_user_proto_rawDescGZIP(), []int{35}
return file_user_user_proto_rawDescGZIP(), []int{37}
}
func (x *QrcodeLoginReq) GetSessionId() string {
@@ -2387,7 +2499,15 @@ const file_user_user_proto_rawDesc = "" +
"\bbirthday\x18\a \x01(\tR\bbirthday\x12\x16\n" +
"\x06status\x18\b \x01(\rR\x06status\"A\n" +
"\x16InternalUsersByBizData\x12'\n" +
"\x05items\x18\x01 \x03(\v2\x11.user.BizUserItemR\x05items\"\"\n" +
"\x05items\x18\x01 \x03(\v2\x11.user.BizUserItemR\x05items\"T\n" +
"\x18InternalLoginByUserIdReq\x12\x17\n" +
"\auser_id\x18\x01 \x01(\x03R\x06userId\x12\x1f\n" +
"\vclient_code\x18\x02 \x01(\tR\n" +
"clientCode\"w\n" +
"\x19InternalLoginByUserIdData\x12!\n" +
"\faccess_token\x18\x01 \x01(\tR\vaccessToken\x12#\n" +
"\rrefresh_token\x18\x02 \x01(\tR\frefreshToken\x12\x12\n" +
"\x04info\x18\x03 \x01(\tR\x04info\"\"\n" +
"\fGetOpenidReq\x12\x12\n" +
"\x04code\x18\x01 \x01(\tR\x04code\"#\n" +
"\rBindMobileReq\x12\x12\n" +
@@ -2422,7 +2542,7 @@ const file_user_user_proto_rawDesc = "" +
"\x0eQrcodeLoginReq\x12\x1d\n" +
"\n" +
"session_id\x18\x01 \x01(\tR\tsessionId\x12\x12\n" +
"\x04type\x18\x02 \x01(\x05R\x04type2\xf5\x0e\n" +
"\x04type\x18\x02 \x01(\x05R\x04type2\xcf\x0f\n" +
"\x04User\x12F\n" +
"\x05Login\x12\x0e.user.LoginReq\x1a\x0e.user.Response\"\x1d\x82\xd3\xe4\x93\x02\x17:\x01*\"\x12/api/v3/user/login\x12b\n" +
"\x0eGenerateQrcode\x12\x17.user.GenerateQrcodeReq\x1a\x0e.user.Response\"'\x82\xd3\xe4\x93\x02!:\x01*\"\x1c/api/v3/user/qrcode/generate\x12V\n" +
@@ -2449,7 +2569,8 @@ const file_user_user_proto_rawDesc = "" +
"\x17InternalRevokeBizClient\x12 .user.InternalRevokeBizClientReq\x1a!.user.InternalRevokeBizClientData\x12R\n" +
"\x13InternalGetUserInfo\x12\x1c.user.InternalGetUserInfoReq\x1a\x1d.user.InternalGetUserInfoData\x12[\n" +
"\x16InternalVerifyPassword\x12\x1f.user.InternalVerifyPasswordReq\x1a .user.InternalVerifyPasswordData\x12O\n" +
"\x12InternalUsersByBiz\x12\x1b.user.InternalUsersByBizReq\x1a\x1c.user.InternalUsersByBizDataB\x18Z\x16lone-services/rpc/userb\x06proto3"
"\x12InternalUsersByBiz\x12\x1b.user.InternalUsersByBizReq\x1a\x1c.user.InternalUsersByBizData\x12X\n" +
"\x15InternalLoginByUserId\x12\x1e.user.InternalLoginByUserIdReq\x1a\x1f.user.InternalLoginByUserIdDataB\x18Z\x16lone-services/rpc/userb\x06proto3"
var (
file_user_user_proto_rawDescOnce sync.Once
@@ -2463,7 +2584,7 @@ func file_user_user_proto_rawDescGZIP() []byte {
return file_user_user_proto_rawDescData
}
var file_user_user_proto_msgTypes = make([]protoimpl.MessageInfo, 36)
var file_user_user_proto_msgTypes = make([]protoimpl.MessageInfo, 38)
var file_user_user_proto_goTypes = []any{
(*Response)(nil), // 0: user.Response
(*LoginReq)(nil), // 1: user.LoginReq
@@ -2491,31 +2612,33 @@ var file_user_user_proto_goTypes = []any{
(*InternalUsersByBizReq)(nil), // 23: user.InternalUsersByBizReq
(*BizUserItem)(nil), // 24: user.BizUserItem
(*InternalUsersByBizData)(nil), // 25: user.InternalUsersByBizData
(*GetOpenidReq)(nil), // 26: user.GetOpenidReq
(*BindMobileReq)(nil), // 27: user.BindMobileReq
(*RebindMobileReq)(nil), // 28: user.RebindMobileReq
(*InfoReq)(nil), // 29: user.InfoReq
(*UpdateReq)(nil), // 30: user.UpdateReq
(*PasswordReq)(nil), // 31: user.PasswordReq
(*ClientReq)(nil), // 32: user.ClientReq
(*GenerateQrcodeReq)(nil), // 33: user.GenerateQrcodeReq
(*QrcodeScanReq)(nil), // 34: user.QrcodeScanReq
(*QrcodeLoginReq)(nil), // 35: user.QrcodeLoginReq
(*InternalLoginByUserIdReq)(nil), // 26: user.InternalLoginByUserIdReq
(*InternalLoginByUserIdData)(nil), // 27: user.InternalLoginByUserIdData
(*GetOpenidReq)(nil), // 28: user.GetOpenidReq
(*BindMobileReq)(nil), // 29: user.BindMobileReq
(*RebindMobileReq)(nil), // 30: user.RebindMobileReq
(*InfoReq)(nil), // 31: user.InfoReq
(*UpdateReq)(nil), // 32: user.UpdateReq
(*PasswordReq)(nil), // 33: user.PasswordReq
(*ClientReq)(nil), // 34: user.ClientReq
(*GenerateQrcodeReq)(nil), // 35: user.GenerateQrcodeReq
(*QrcodeScanReq)(nil), // 36: user.QrcodeScanReq
(*QrcodeLoginReq)(nil), // 37: user.QrcodeLoginReq
}
var file_user_user_proto_depIdxs = []int32{
7, // 0: user.InternalUsersByIdsData.items:type_name -> user.UserBriefItem
24, // 1: user.InternalUsersByBizData.items:type_name -> user.BizUserItem
1, // 2: user.User.Login:input_type -> user.LoginReq
33, // 3: user.User.GenerateQrcode:input_type -> user.GenerateQrcodeReq
34, // 4: user.User.QrcodeScan:input_type -> user.QrcodeScanReq
35, // 5: user.User.QrcodeLogin:input_type -> user.QrcodeLoginReq
29, // 6: user.User.Info:input_type -> user.InfoReq
30, // 7: user.User.Update:input_type -> user.UpdateReq
31, // 8: user.User.Password:input_type -> user.PasswordReq
26, // 9: user.User.GetOpenid:input_type -> user.GetOpenidReq
27, // 10: user.User.BindMobile:input_type -> user.BindMobileReq
28, // 11: user.User.RebindMobile:input_type -> user.RebindMobileReq
32, // 12: user.User.Client:input_type -> user.ClientReq
35, // 3: user.User.GenerateQrcode:input_type -> user.GenerateQrcodeReq
36, // 4: user.User.QrcodeScan:input_type -> user.QrcodeScanReq
37, // 5: user.User.QrcodeLogin:input_type -> user.QrcodeLoginReq
31, // 6: user.User.Info:input_type -> user.InfoReq
32, // 7: user.User.Update:input_type -> user.UpdateReq
33, // 8: user.User.Password:input_type -> user.PasswordReq
28, // 9: user.User.GetOpenid:input_type -> user.GetOpenidReq
29, // 10: user.User.BindMobile:input_type -> user.BindMobileReq
30, // 11: user.User.RebindMobile:input_type -> user.RebindMobileReq
34, // 12: user.User.Client:input_type -> user.ClientReq
2, // 13: user.User.UserItems:input_type -> user.UserItemsReq
3, // 14: user.User.UserStatus:input_type -> user.UserStatusReq
4, // 15: user.User.InternalCreate:input_type -> user.InternalCreateReq
@@ -2528,31 +2651,33 @@ var file_user_user_proto_depIdxs = []int32{
19, // 22: user.User.InternalGetUserInfo:input_type -> user.InternalGetUserInfoReq
21, // 23: user.User.InternalVerifyPassword:input_type -> user.InternalVerifyPasswordReq
23, // 24: user.User.InternalUsersByBiz:input_type -> user.InternalUsersByBizReq
0, // 25: user.User.Login:output_type -> user.Response
0, // 26: user.User.GenerateQrcode:output_type -> user.Response
0, // 27: user.User.QrcodeScan:output_type -> user.Response
0, // 28: user.User.QrcodeLogin:output_type -> user.Response
0, // 29: user.User.Info:output_type -> user.Response
0, // 30: user.User.Update:output_type -> user.Response
0, // 31: user.User.Password:output_type -> user.Response
0, // 32: user.User.GetOpenid:output_type -> user.Response
0, // 33: user.User.BindMobile:output_type -> user.Response
0, // 34: user.User.RebindMobile:output_type -> user.Response
0, // 35: user.User.Client:output_type -> user.Response
0, // 36: user.User.UserItems:output_type -> user.Response
0, // 37: user.User.UserStatus:output_type -> user.Response
5, // 38: user.User.InternalCreate:output_type -> user.InternalCreateData
14, // 39: user.User.InternalCheckCreate:output_type -> user.InternalCheckCreateData
16, // 40: user.User.InternalCheckUpdate:output_type -> user.InternalCheckUpdateData
18, // 41: user.User.InternalUpdate:output_type -> user.InternalUpdateData
8, // 42: user.User.InternalUsersByIds:output_type -> user.InternalUsersByIdsData
10, // 43: user.User.InternalUpdateMobile:output_type -> user.InternalUpdateMobileData
12, // 44: user.User.InternalRevokeBizClient:output_type -> user.InternalRevokeBizClientData
20, // 45: user.User.InternalGetUserInfo:output_type -> user.InternalGetUserInfoData
22, // 46: user.User.InternalVerifyPassword:output_type -> user.InternalVerifyPasswordData
25, // 47: user.User.InternalUsersByBiz:output_type -> user.InternalUsersByBizData
25, // [25:48] is the sub-list for method output_type
2, // [2:25] is the sub-list for method input_type
26, // 25: user.User.InternalLoginByUserId:input_type -> user.InternalLoginByUserIdReq
0, // 26: user.User.Login:output_type -> user.Response
0, // 27: user.User.GenerateQrcode:output_type -> user.Response
0, // 28: user.User.QrcodeScan:output_type -> user.Response
0, // 29: user.User.QrcodeLogin:output_type -> user.Response
0, // 30: user.User.Info:output_type -> user.Response
0, // 31: user.User.Update:output_type -> user.Response
0, // 32: user.User.Password:output_type -> user.Response
0, // 33: user.User.GetOpenid:output_type -> user.Response
0, // 34: user.User.BindMobile:output_type -> user.Response
0, // 35: user.User.RebindMobile:output_type -> user.Response
0, // 36: user.User.Client:output_type -> user.Response
0, // 37: user.User.UserItems:output_type -> user.Response
0, // 38: user.User.UserStatus:output_type -> user.Response
5, // 39: user.User.InternalCreate:output_type -> user.InternalCreateData
14, // 40: user.User.InternalCheckCreate:output_type -> user.InternalCheckCreateData
16, // 41: user.User.InternalCheckUpdate:output_type -> user.InternalCheckUpdateData
18, // 42: user.User.InternalUpdate:output_type -> user.InternalUpdateData
8, // 43: user.User.InternalUsersByIds:output_type -> user.InternalUsersByIdsData
10, // 44: user.User.InternalUpdateMobile:output_type -> user.InternalUpdateMobileData
12, // 45: user.User.InternalRevokeBizClient:output_type -> user.InternalRevokeBizClientData
20, // 46: user.User.InternalGetUserInfo:output_type -> user.InternalGetUserInfoData
22, // 47: user.User.InternalVerifyPassword:output_type -> user.InternalVerifyPasswordData
25, // 48: user.User.InternalUsersByBiz:output_type -> user.InternalUsersByBizData
27, // 49: user.User.InternalLoginByUserId:output_type -> user.InternalLoginByUserIdData
26, // [26:50] is the sub-list for method output_type
2, // [2:26] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
@@ -2569,7 +2694,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: 36,
NumMessages: 38,
NumExtensions: 0,
NumServices: 1,
},
+38
View File
@@ -42,6 +42,7 @@ const (
User_InternalGetUserInfo_FullMethodName = "/user.User/InternalGetUserInfo"
User_InternalVerifyPassword_FullMethodName = "/user.User/InternalVerifyPassword"
User_InternalUsersByBiz_FullMethodName = "/user.User/InternalUsersByBiz"
User_InternalLoginByUserId_FullMethodName = "/user.User/InternalLoginByUserId"
)
// UserClient is the client API for User service.
@@ -71,6 +72,7 @@ type UserClient interface {
InternalGetUserInfo(ctx context.Context, in *InternalGetUserInfoReq, opts ...grpc.CallOption) (*InternalGetUserInfoData, error)
InternalVerifyPassword(ctx context.Context, in *InternalVerifyPasswordReq, opts ...grpc.CallOption) (*InternalVerifyPasswordData, error)
InternalUsersByBiz(ctx context.Context, in *InternalUsersByBizReq, opts ...grpc.CallOption) (*InternalUsersByBizData, error)
InternalLoginByUserId(ctx context.Context, in *InternalLoginByUserIdReq, opts ...grpc.CallOption) (*InternalLoginByUserIdData, error)
}
type userClient struct {
@@ -311,6 +313,16 @@ func (c *userClient) InternalUsersByBiz(ctx context.Context, in *InternalUsersBy
return out, nil
}
func (c *userClient) InternalLoginByUserId(ctx context.Context, in *InternalLoginByUserIdReq, opts ...grpc.CallOption) (*InternalLoginByUserIdData, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(InternalLoginByUserIdData)
err := c.cc.Invoke(ctx, User_InternalLoginByUserId_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
// UserServer is the server API for User service.
// All implementations must embed UnimplementedUserServer
// for forward compatibility.
@@ -338,6 +350,7 @@ type UserServer interface {
InternalGetUserInfo(context.Context, *InternalGetUserInfoReq) (*InternalGetUserInfoData, error)
InternalVerifyPassword(context.Context, *InternalVerifyPasswordReq) (*InternalVerifyPasswordData, error)
InternalUsersByBiz(context.Context, *InternalUsersByBizReq) (*InternalUsersByBizData, error)
InternalLoginByUserId(context.Context, *InternalLoginByUserIdReq) (*InternalLoginByUserIdData, error)
mustEmbedUnimplementedUserServer()
}
@@ -417,6 +430,9 @@ func (UnimplementedUserServer) InternalVerifyPassword(context.Context, *Internal
func (UnimplementedUserServer) InternalUsersByBiz(context.Context, *InternalUsersByBizReq) (*InternalUsersByBizData, error) {
return nil, status.Error(codes.Unimplemented, "method InternalUsersByBiz not implemented")
}
func (UnimplementedUserServer) InternalLoginByUserId(context.Context, *InternalLoginByUserIdReq) (*InternalLoginByUserIdData, error) {
return nil, status.Error(codes.Unimplemented, "method InternalLoginByUserId not implemented")
}
func (UnimplementedUserServer) mustEmbedUnimplementedUserServer() {}
func (UnimplementedUserServer) testEmbeddedByValue() {}
@@ -852,6 +868,24 @@ func _User_InternalUsersByBiz_Handler(srv interface{}, ctx context.Context, dec
return interceptor(ctx, in, info, handler)
}
func _User_InternalLoginByUserId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(InternalLoginByUserIdReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(UserServer).InternalLoginByUserId(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: User_InternalLoginByUserId_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(UserServer).InternalLoginByUserId(ctx, req.(*InternalLoginByUserIdReq))
}
return interceptor(ctx, in, info, handler)
}
// User_ServiceDesc is the grpc.ServiceDesc for User service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
@@ -951,6 +985,10 @@ var User_ServiceDesc = grpc.ServiceDesc{
MethodName: "InternalUsersByBiz",
Handler: _User_InternalUsersByBiz_Handler,
},
{
MethodName: "InternalLoginByUserId",
Handler: _User_InternalLoginByUserId_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "user/user.proto",
BIN
View File
Binary file not shown.
+12
View File
@@ -95,6 +95,7 @@ service User {
rpc InternalGetUserInfo(InternalGetUserInfoReq) returns (InternalGetUserInfoData);
rpc InternalVerifyPassword(InternalVerifyPasswordReq) returns (InternalVerifyPasswordData);
rpc InternalUsersByBiz(InternalUsersByBizReq) returns (InternalUsersByBizData);
rpc InternalLoginByUserId(InternalLoginByUserIdReq) returns (InternalLoginByUserIdData);
}
message Response {
@@ -271,6 +272,17 @@ message InternalUsersByBizData {
repeated BizUserItem items = 1;
}
message InternalLoginByUserIdReq {
int64 user_id = 1;
string client_code = 2;
}
message InternalLoginByUserIdData {
string access_token = 1;
string refresh_token = 2;
string info = 3;
}
message GetOpenidReq {
string code = 1;
}