refactor(models,ddb): rename miltiple object models and related functions
This commit is contained in:
@@ -11,7 +11,7 @@ import (
|
||||
"github.com/jackc/pgx/v5/pgconn"
|
||||
)
|
||||
|
||||
func PersonsGet(ctx context.Context, user_id, filter, sort string, limit, offset int) (persons models.Persons, statusCode int, err error) {
|
||||
func PersonGetSlice(ctx context.Context, user_id, filter, sort string, limit, offset int) (persons models.PersonSlice, statusCode int, err error) {
|
||||
ok, _ := UserAuth(ctx, user_id)
|
||||
if !ok {
|
||||
err = fmt.Errorf("unauthorized")
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user