feat: impl delete user apiv2

This commit is contained in:
Steven
2023-08-22 09:15:27 +08:00
parent 1c58702716
commit 34f8a97309
11 changed files with 609 additions and 165 deletions

View File

@ -14,6 +14,7 @@ func isUnauthorizeAllowedMethod(methodName string) bool {
var allowedMethodsOnlyForAdmin = map[string]bool{
"/slash.api.v2.UserService/CreateUser": true,
"/slash.api.v2.UserService/DeleteUser": true,
}
// isOnlyForAdminAllowedMethod returns true if the method is allowed to be called only by admin.