refactor(models,ddb): rename miltiple object models and related functions

This commit is contained in:
2025-01-27 21:41:07 +03:00
parent db213bd559
commit b3cd25117f
3 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"github.com/jackc/pgx/v5/pgconn"
)
func RolesGet(ctx context.Context, user_id, filter, sort string, limit, offset int) (roles models.Roles, statusCode int, err error) {
func RoleGetSlice(ctx context.Context, user_id, filter, sort string, limit, offset int) (roles models.RoleSlice, statusCode int, err error) {
ok, _ := UserAuth(ctx, user_id)
if !ok {
err = fmt.Errorf("unauthorized")