fixing order eligible menu
This commit is contained in:
@@ -37,7 +37,7 @@ type accessRepo struct {
|
||||
|
||||
func NewRepository(dbService database.Service) IAccessRepository {
|
||||
queryBuilder := queryUtils.NewQueryBuilder(queryUtils.DBTypePostgreSQL).SetAllowedColumns([]string{
|
||||
"id", "name", "is_active", "keycloak_id", "id_user", "id_permission", "email", "created_at", "id_page",
|
||||
"id", "name", "is_active", "keycloak_id", "id_user", "id_permission", "email", "created_at", "id_page", "sort", "level",
|
||||
}).SetAllowedTables([]string{TBL_USER})
|
||||
|
||||
queryBuilder.SetSecurityOptions(false, 100)
|
||||
@@ -876,6 +876,10 @@ func (r accessRepo) getPageByIds(c context.Context, db *sqlx.DB, ids []string) (
|
||||
{Expression: "sort"},
|
||||
{Expression: "parent"},
|
||||
},
|
||||
Sort: []queryUtils.SortField{
|
||||
{Column: "sort", Order: "ASC"},
|
||||
{Column: "level", Order: "ASC"},
|
||||
},
|
||||
Filters: []queryUtils.FilterGroup{
|
||||
{
|
||||
Filters: []queryUtils.DynamicFilter{
|
||||
|
||||
Reference in New Issue
Block a user