chore: auto-generate protobuf files [skip ci]
This commit is contained in:
@@ -164,6 +164,22 @@ export interface SystemUnblockIpResponse {
|
||||
success: boolean;
|
||||
}
|
||||
|
||||
export interface SystemGetAllAccountsRequest {
|
||||
limit: number;
|
||||
offset: number;
|
||||
}
|
||||
|
||||
export interface AccountBasicItem {
|
||||
id: string;
|
||||
username: string;
|
||||
status: string;
|
||||
}
|
||||
|
||||
export interface SystemGetAllAccountsResponse {
|
||||
accounts: AccountBasicItem[];
|
||||
total: number;
|
||||
}
|
||||
|
||||
export const AUTH_V1_PACKAGE_NAME = "auth.v1";
|
||||
|
||||
export interface AuthServiceClient {
|
||||
@@ -205,6 +221,11 @@ export interface AuthServiceClient {
|
||||
systemBlockIp(request: SystemBlockIpRequest, metadata?: Metadata): Observable<SystemBlockIpResponse>;
|
||||
|
||||
systemUnblockIp(request: SystemUnblockIpRequest, metadata?: Metadata): Observable<SystemUnblockIpResponse>;
|
||||
|
||||
systemGetAllAccounts(
|
||||
request: SystemGetAllAccountsRequest,
|
||||
metadata?: Metadata,
|
||||
): Observable<SystemGetAllAccountsResponse>;
|
||||
}
|
||||
|
||||
export interface AuthServiceController {
|
||||
@@ -276,6 +297,11 @@ export interface AuthServiceController {
|
||||
request: SystemUnblockIpRequest,
|
||||
metadata?: Metadata,
|
||||
): Promise<SystemUnblockIpResponse> | Observable<SystemUnblockIpResponse> | SystemUnblockIpResponse;
|
||||
|
||||
systemGetAllAccounts(
|
||||
request: SystemGetAllAccountsRequest,
|
||||
metadata?: Metadata,
|
||||
): Promise<SystemGetAllAccountsResponse> | Observable<SystemGetAllAccountsResponse> | SystemGetAllAccountsResponse;
|
||||
}
|
||||
|
||||
export function AuthServiceControllerMethods() {
|
||||
@@ -295,6 +321,7 @@ export function AuthServiceControllerMethods() {
|
||||
"systemUpdatePin",
|
||||
"systemBlockIp",
|
||||
"systemUnblockIp",
|
||||
"systemGetAllAccounts",
|
||||
];
|
||||
for (const method of grpcMethods) {
|
||||
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
||||
|
||||
Reference in New Issue
Block a user