MSP-2175 align func naming
This commit is contained in:
1 parent
c08782855b
commit
e65f5ac03c
8 files changed
+27
-37
No files matched your search
+3
-3
@@ -61,7 +61,7 @@ func (u Role) All(ctx context.Context) ([]domain.Role, error) {
|
||||
// @Failure 500 {object} domain.GrpcError
|
||||
// @Router /role/create [POST]
|
||||
func (u Role) CreateRole(ctx context.Context, authData grpc.AuthData, req domain.CreateRoleRequest) (*domain.Role, error) {
|
||||
adminId, err := getUserToken(authData)
|
||||
adminId, err := getAdminId(authData)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -91,7 +91,7 @@ func (u Role) CreateRole(ctx context.Context, authData grpc.AuthData, req domain
|
||||
// @Failure 500 {object} domain.GrpcError
|
||||
// @Router /role/update [POST]
|
||||
func (u Role) UpdateRole(ctx context.Context, authData grpc.AuthData, req domain.UpdateRoleRequest) (*domain.Role, error) {
|
||||
adminId, err := getUserToken(authData)
|
||||
adminId, err := getAdminId(authData)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -122,7 +122,7 @@ func (u Role) UpdateRole(ctx context.Context, authData grpc.AuthData, req domain
|
||||
// @Failure 500 {object} domain.GrpcError
|
||||
// @Router /role/delete [POST]
|
||||
func (u Role) DeleteRole(ctx context.Context, authData grpc.AuthData, req domain.DeleteRoleRequest) error {
|
||||
adminId, err := getUserToken(authData)
|
||||
adminId, err := getAdminId(authData)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user