chore: auto-generate protobuf files [skip ci]

This commit is contained in:
github-actions[bot]
2026-04-19 07:52:48 +00:00
parent 4be5b29131
commit 3b2df0aed6
6 changed files with 591 additions and 94 deletions

View File

@@ -1497,6 +1497,170 @@ func (x *SystemUnblockIpResponse) GetSuccess() bool {
return false
}
type SystemGetAllAccountsRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Limit int32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
Offset int32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SystemGetAllAccountsRequest) Reset() {
*x = SystemGetAllAccountsRequest{}
mi := &file_sso_auth_proto_msgTypes[27]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SystemGetAllAccountsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SystemGetAllAccountsRequest) ProtoMessage() {}
func (x *SystemGetAllAccountsRequest) ProtoReflect() protoreflect.Message {
mi := &file_sso_auth_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 SystemGetAllAccountsRequest.ProtoReflect.Descriptor instead.
func (*SystemGetAllAccountsRequest) Descriptor() ([]byte, []int) {
return file_sso_auth_proto_rawDescGZIP(), []int{27}
}
func (x *SystemGetAllAccountsRequest) GetLimit() int32 {
if x != nil {
return x.Limit
}
return 0
}
func (x *SystemGetAllAccountsRequest) GetOffset() int32 {
if x != nil {
return x.Offset
}
return 0
}
type AccountBasicItem struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AccountBasicItem) Reset() {
*x = AccountBasicItem{}
mi := &file_sso_auth_proto_msgTypes[28]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AccountBasicItem) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AccountBasicItem) ProtoMessage() {}
func (x *AccountBasicItem) ProtoReflect() protoreflect.Message {
mi := &file_sso_auth_proto_msgTypes[28]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AccountBasicItem.ProtoReflect.Descriptor instead.
func (*AccountBasicItem) Descriptor() ([]byte, []int) {
return file_sso_auth_proto_rawDescGZIP(), []int{28}
}
func (x *AccountBasicItem) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *AccountBasicItem) GetUsername() string {
if x != nil {
return x.Username
}
return ""
}
func (x *AccountBasicItem) GetStatus() string {
if x != nil {
return x.Status
}
return ""
}
type SystemGetAllAccountsResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Accounts []*AccountBasicItem `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"`
Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SystemGetAllAccountsResponse) Reset() {
*x = SystemGetAllAccountsResponse{}
mi := &file_sso_auth_proto_msgTypes[29]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SystemGetAllAccountsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SystemGetAllAccountsResponse) ProtoMessage() {}
func (x *SystemGetAllAccountsResponse) ProtoReflect() protoreflect.Message {
mi := &file_sso_auth_proto_msgTypes[29]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SystemGetAllAccountsResponse.ProtoReflect.Descriptor instead.
func (*SystemGetAllAccountsResponse) Descriptor() ([]byte, []int) {
return file_sso_auth_proto_rawDescGZIP(), []int{29}
}
func (x *SystemGetAllAccountsResponse) GetAccounts() []*AccountBasicItem {
if x != nil {
return x.Accounts
}
return nil
}
func (x *SystemGetAllAccountsResponse) GetTotal() int32 {
if x != nil {
return x.Total
}
return 0
}
var File_sso_auth_proto protoreflect.FileDescriptor
const file_sso_auth_proto_rawDesc = "" +
@@ -1623,7 +1787,17 @@ const file_sso_auth_proto_rawDesc = "" +
"\n" +
"ip_address\x18\x01 \x01(\tR\tipAddress\"3\n" +
"\x17SystemUnblockIpResponse\x12\x18\n" +
"\asuccess\x18\x02 \x01(\bR\asuccess2\xee\b\n" +
"\asuccess\x18\x02 \x01(\bR\asuccess\"K\n" +
"\x1bSystemGetAllAccountsRequest\x12\x14\n" +
"\x05limit\x18\x01 \x01(\x05R\x05limit\x12\x16\n" +
"\x06offset\x18\x02 \x01(\x05R\x06offset\"V\n" +
"\x10AccountBasicItem\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\x12\x1a\n" +
"\busername\x18\x02 \x01(\tR\busername\x12\x16\n" +
"\x06status\x18\x03 \x01(\tR\x06status\"k\n" +
"\x1cSystemGetAllAccountsResponse\x125\n" +
"\baccounts\x18\x01 \x03(\v2\x19.auth.v1.AccountBasicItemR\baccounts\x12\x14\n" +
"\x05total\x18\x02 \x01(\x05R\x05total2\xd3\t\n" +
"\vAuthService\x126\n" +
"\x05Login\x12\x15.auth.v1.LoginRequest\x1a\x16.auth.v1.LoginResponse\x12<\n" +
"\aRefresh\x12\x17.auth.v1.RefreshRequest\x1a\x18.auth.v1.RefreshResponse\x12H\n" +
@@ -1638,7 +1812,8 @@ const file_sso_auth_proto_rawDesc = "" +
"\x14SystemUpdatePassword\x12$.auth.v1.SystemUpdatePasswordRequest\x1a%.auth.v1.SystemUpdatePasswordResponse\x12T\n" +
"\x0fSystemUpdatePin\x12\x1f.auth.v1.SystemUpdatePinRequest\x1a .auth.v1.SystemUpdatePinResponse\x12N\n" +
"\rSystemBlockIp\x12\x1d.auth.v1.SystemBlockIpRequest\x1a\x1e.auth.v1.SystemBlockIpResponse\x12T\n" +
"\x0fSystemUnblockIp\x12\x1f.auth.v1.SystemUnblockIpRequest\x1a .auth.v1.SystemUnblockIpResponseB*Z(git.lendry.ru/lendry-erp/proto.git/go;pbb\x06proto3"
"\x0fSystemUnblockIp\x12\x1f.auth.v1.SystemUnblockIpRequest\x1a .auth.v1.SystemUnblockIpResponse\x12c\n" +
"\x14SystemGetAllAccounts\x12$.auth.v1.SystemGetAllAccountsRequest\x1a%.auth.v1.SystemGetAllAccountsResponseB*Z(git.lendry.ru/lendry-erp/proto.git/go;pbb\x06proto3"
var (
file_sso_auth_proto_rawDescOnce sync.Once
@@ -1652,7 +1827,7 @@ func file_sso_auth_proto_rawDescGZIP() []byte {
return file_sso_auth_proto_rawDescData
}
var file_sso_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 27)
var file_sso_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 30)
var file_sso_auth_proto_goTypes = []any{
(*LoginRequest)(nil), // 0: auth.v1.LoginRequest
(*LoginResponse)(nil), // 1: auth.v1.LoginResponse
@@ -1681,42 +1856,48 @@ var file_sso_auth_proto_goTypes = []any{
(*SystemBlockIpResponse)(nil), // 24: auth.v1.SystemBlockIpResponse
(*SystemUnblockIpRequest)(nil), // 25: auth.v1.SystemUnblockIpRequest
(*SystemUnblockIpResponse)(nil), // 26: auth.v1.SystemUnblockIpResponse
(*SystemGetAllAccountsRequest)(nil), // 27: auth.v1.SystemGetAllAccountsRequest
(*AccountBasicItem)(nil), // 28: auth.v1.AccountBasicItem
(*SystemGetAllAccountsResponse)(nil), // 29: auth.v1.SystemGetAllAccountsResponse
}
var file_sso_auth_proto_depIdxs = []int32{
11, // 0: auth.v1.GetSessionsResponse.sessions:type_name -> auth.v1.SessionItem
0, // 1: auth.v1.AuthService.Login:input_type -> auth.v1.LoginRequest
2, // 2: auth.v1.AuthService.Refresh:input_type -> auth.v1.RefreshRequest
6, // 3: auth.v1.AuthService.VerifyToken:input_type -> auth.v1.VerifyTokenRequest
8, // 4: auth.v1.AuthService.GetAccountRoleLevel:input_type -> auth.v1.GetAccountRoleLevelRequest
4, // 5: auth.v1.AuthService.Logout:input_type -> auth.v1.LogoutRequest
4, // 6: auth.v1.AuthService.LogoutOther:input_type -> auth.v1.LogoutRequest
10, // 7: auth.v1.AuthService.GetSessions:input_type -> auth.v1.GetSessionRequest
13, // 8: auth.v1.AuthService.TerminateSession:input_type -> auth.v1.TerminateSessionRequest
15, // 9: auth.v1.AuthService.SystemCreateAccount:input_type -> auth.v1.SystemCreateAccountRequest
17, // 10: auth.v1.AuthService.SystemChangeStatus:input_type -> auth.v1.SystemChangeStatusRequest
19, // 11: auth.v1.AuthService.SystemUpdatePassword:input_type -> auth.v1.SystemUpdatePasswordRequest
21, // 12: auth.v1.AuthService.SystemUpdatePin:input_type -> auth.v1.SystemUpdatePinRequest
23, // 13: auth.v1.AuthService.SystemBlockIp:input_type -> auth.v1.SystemBlockIpRequest
25, // 14: auth.v1.AuthService.SystemUnblockIp:input_type -> auth.v1.SystemUnblockIpRequest
1, // 15: auth.v1.AuthService.Login:output_type -> auth.v1.LoginResponse
3, // 16: auth.v1.AuthService.Refresh:output_type -> auth.v1.RefreshResponse
7, // 17: auth.v1.AuthService.VerifyToken:output_type -> auth.v1.VerifyTokenResponse
9, // 18: auth.v1.AuthService.GetAccountRoleLevel:output_type -> auth.v1.GetAccountRoleLevelResponse
5, // 19: auth.v1.AuthService.Logout:output_type -> auth.v1.LogoutResponse
5, // 20: auth.v1.AuthService.LogoutOther:output_type -> auth.v1.LogoutResponse
12, // 21: auth.v1.AuthService.GetSessions:output_type -> auth.v1.GetSessionsResponse
14, // 22: auth.v1.AuthService.TerminateSession:output_type -> auth.v1.TerminateSessionResponse
16, // 23: auth.v1.AuthService.SystemCreateAccount:output_type -> auth.v1.SystemCreateAccountResponse
18, // 24: auth.v1.AuthService.SystemChangeStatus:output_type -> auth.v1.SystemChangeStatusResponse
20, // 25: auth.v1.AuthService.SystemUpdatePassword:output_type -> auth.v1.SystemUpdatePasswordResponse
22, // 26: auth.v1.AuthService.SystemUpdatePin:output_type -> auth.v1.SystemUpdatePinResponse
24, // 27: auth.v1.AuthService.SystemBlockIp:output_type -> auth.v1.SystemBlockIpResponse
26, // 28: auth.v1.AuthService.SystemUnblockIp:output_type -> auth.v1.SystemUnblockIpResponse
15, // [15:29] is the sub-list for method output_type
1, // [1:15] 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
28, // 1: auth.v1.SystemGetAllAccountsResponse.accounts:type_name -> auth.v1.AccountBasicItem
0, // 2: auth.v1.AuthService.Login:input_type -> auth.v1.LoginRequest
2, // 3: auth.v1.AuthService.Refresh:input_type -> auth.v1.RefreshRequest
6, // 4: auth.v1.AuthService.VerifyToken:input_type -> auth.v1.VerifyTokenRequest
8, // 5: auth.v1.AuthService.GetAccountRoleLevel:input_type -> auth.v1.GetAccountRoleLevelRequest
4, // 6: auth.v1.AuthService.Logout:input_type -> auth.v1.LogoutRequest
4, // 7: auth.v1.AuthService.LogoutOther:input_type -> auth.v1.LogoutRequest
10, // 8: auth.v1.AuthService.GetSessions:input_type -> auth.v1.GetSessionRequest
13, // 9: auth.v1.AuthService.TerminateSession:input_type -> auth.v1.TerminateSessionRequest
15, // 10: auth.v1.AuthService.SystemCreateAccount:input_type -> auth.v1.SystemCreateAccountRequest
17, // 11: auth.v1.AuthService.SystemChangeStatus:input_type -> auth.v1.SystemChangeStatusRequest
19, // 12: auth.v1.AuthService.SystemUpdatePassword:input_type -> auth.v1.SystemUpdatePasswordRequest
21, // 13: auth.v1.AuthService.SystemUpdatePin:input_type -> auth.v1.SystemUpdatePinRequest
23, // 14: auth.v1.AuthService.SystemBlockIp:input_type -> auth.v1.SystemBlockIpRequest
25, // 15: auth.v1.AuthService.SystemUnblockIp:input_type -> auth.v1.SystemUnblockIpRequest
27, // 16: auth.v1.AuthService.SystemGetAllAccounts:input_type -> auth.v1.SystemGetAllAccountsRequest
1, // 17: auth.v1.AuthService.Login:output_type -> auth.v1.LoginResponse
3, // 18: auth.v1.AuthService.Refresh:output_type -> auth.v1.RefreshResponse
7, // 19: auth.v1.AuthService.VerifyToken:output_type -> auth.v1.VerifyTokenResponse
9, // 20: auth.v1.AuthService.GetAccountRoleLevel:output_type -> auth.v1.GetAccountRoleLevelResponse
5, // 21: auth.v1.AuthService.Logout:output_type -> auth.v1.LogoutResponse
5, // 22: auth.v1.AuthService.LogoutOther:output_type -> auth.v1.LogoutResponse
12, // 23: auth.v1.AuthService.GetSessions:output_type -> auth.v1.GetSessionsResponse
14, // 24: auth.v1.AuthService.TerminateSession:output_type -> auth.v1.TerminateSessionResponse
16, // 25: auth.v1.AuthService.SystemCreateAccount:output_type -> auth.v1.SystemCreateAccountResponse
18, // 26: auth.v1.AuthService.SystemChangeStatus:output_type -> auth.v1.SystemChangeStatusResponse
20, // 27: auth.v1.AuthService.SystemUpdatePassword:output_type -> auth.v1.SystemUpdatePasswordResponse
22, // 28: auth.v1.AuthService.SystemUpdatePin:output_type -> auth.v1.SystemUpdatePinResponse
24, // 29: auth.v1.AuthService.SystemBlockIp:output_type -> auth.v1.SystemBlockIpResponse
26, // 30: auth.v1.AuthService.SystemUnblockIp:output_type -> auth.v1.SystemUnblockIpResponse
29, // 31: auth.v1.AuthService.SystemGetAllAccounts:output_type -> auth.v1.SystemGetAllAccountsResponse
17, // [17:32] is the sub-list for method output_type
2, // [2:17] 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
}
func init() { file_sso_auth_proto_init() }
@@ -1734,7 +1915,7 @@ func file_sso_auth_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_sso_auth_proto_rawDesc), len(file_sso_auth_proto_rawDesc)),
NumEnums: 0,
NumMessages: 27,
NumMessages: 30,
NumExtensions: 0,
NumServices: 1,
},

View File

@@ -33,6 +33,7 @@ const (
AuthService_SystemUpdatePin_FullMethodName = "/auth.v1.AuthService/SystemUpdatePin"
AuthService_SystemBlockIp_FullMethodName = "/auth.v1.AuthService/SystemBlockIp"
AuthService_SystemUnblockIp_FullMethodName = "/auth.v1.AuthService/SystemUnblockIp"
AuthService_SystemGetAllAccounts_FullMethodName = "/auth.v1.AuthService/SystemGetAllAccounts"
)
// AuthServiceClient is the client API for AuthService service.
@@ -54,6 +55,7 @@ type AuthServiceClient interface {
SystemUpdatePin(ctx context.Context, in *SystemUpdatePinRequest, opts ...grpc.CallOption) (*SystemUpdatePinResponse, error)
SystemBlockIp(ctx context.Context, in *SystemBlockIpRequest, opts ...grpc.CallOption) (*SystemBlockIpResponse, error)
SystemUnblockIp(ctx context.Context, in *SystemUnblockIpRequest, opts ...grpc.CallOption) (*SystemUnblockIpResponse, error)
SystemGetAllAccounts(ctx context.Context, in *SystemGetAllAccountsRequest, opts ...grpc.CallOption) (*SystemGetAllAccountsResponse, error)
}
type authServiceClient struct {
@@ -204,6 +206,16 @@ func (c *authServiceClient) SystemUnblockIp(ctx context.Context, in *SystemUnblo
return out, nil
}
func (c *authServiceClient) SystemGetAllAccounts(ctx context.Context, in *SystemGetAllAccountsRequest, opts ...grpc.CallOption) (*SystemGetAllAccountsResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(SystemGetAllAccountsResponse)
err := c.cc.Invoke(ctx, AuthService_SystemGetAllAccounts_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
// AuthServiceServer is the server API for AuthService service.
// All implementations must embed UnimplementedAuthServiceServer
// for forward compatibility.
@@ -223,6 +235,7 @@ type AuthServiceServer interface {
SystemUpdatePin(context.Context, *SystemUpdatePinRequest) (*SystemUpdatePinResponse, error)
SystemBlockIp(context.Context, *SystemBlockIpRequest) (*SystemBlockIpResponse, error)
SystemUnblockIp(context.Context, *SystemUnblockIpRequest) (*SystemUnblockIpResponse, error)
SystemGetAllAccounts(context.Context, *SystemGetAllAccountsRequest) (*SystemGetAllAccountsResponse, error)
mustEmbedUnimplementedAuthServiceServer()
}
@@ -275,6 +288,9 @@ func (UnimplementedAuthServiceServer) SystemBlockIp(context.Context, *SystemBloc
func (UnimplementedAuthServiceServer) SystemUnblockIp(context.Context, *SystemUnblockIpRequest) (*SystemUnblockIpResponse, error) {
return nil, status.Error(codes.Unimplemented, "method SystemUnblockIp not implemented")
}
func (UnimplementedAuthServiceServer) SystemGetAllAccounts(context.Context, *SystemGetAllAccountsRequest) (*SystemGetAllAccountsResponse, error) {
return nil, status.Error(codes.Unimplemented, "method SystemGetAllAccounts not implemented")
}
func (UnimplementedAuthServiceServer) mustEmbedUnimplementedAuthServiceServer() {}
func (UnimplementedAuthServiceServer) testEmbeddedByValue() {}
@@ -548,6 +564,24 @@ func _AuthService_SystemUnblockIp_Handler(srv interface{}, ctx context.Context,
return interceptor(ctx, in, info, handler)
}
func _AuthService_SystemGetAllAccounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SystemGetAllAccountsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AuthServiceServer).SystemGetAllAccounts(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: AuthService_SystemGetAllAccounts_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AuthServiceServer).SystemGetAllAccounts(ctx, req.(*SystemGetAllAccountsRequest))
}
return interceptor(ctx, in, info, handler)
}
// AuthService_ServiceDesc is the grpc.ServiceDesc for AuthService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
@@ -611,6 +645,10 @@ var AuthService_ServiceDesc = grpc.ServiceDesc{
MethodName: "SystemUnblockIp",
Handler: _AuthService_SystemUnblockIp_Handler,
},
{
MethodName: "SystemGetAllAccounts",
Handler: _AuthService_SystemGetAllAccounts_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "sso/auth.proto",