阶段性提交

This commit is contained in:
刘祥超
2020-12-15 11:52:57 +08:00
parent 674de0d0b5
commit e449935bf2
7 changed files with 155 additions and 30 deletions

View File

@@ -93,7 +93,7 @@ func ValidateRequest(ctx context.Context, userTypes ...UserType) (userType UserT
t := m.GetString("type")
if len(userTypes) > 0 && !lists.ContainsString(userTypes, t) {
return UserTypeNone, 0, errors.New("not supported user type: '" + userType + "'")
return UserTypeNone, 0, errors.New("not supported node type: '" + t + "'")
}
switch apiToken.Role {