@@ -31,7 +31,7 @@ export default class Admin {
3131 }
3232 }
3333
34- static getAllAuths ( ) {
34+ static getAllPermissions ( ) {
3535 return get ( 'cms/admin/permission' )
3636 }
3737
@@ -62,7 +62,7 @@ export default class Admin {
6262 return this . getAdminUsers ( { } )
6363 }
6464
65- async getGroupsWithAuths ( { count = this . uCount , page = this . uPag } ) {
65+ async getGroupsWithPermissions ( { count = this . uCount , page = this . uPag } ) {
6666 const res = await get ( 'cms/admin/groups' , {
6767 count,
6868 page,
@@ -72,12 +72,12 @@ export default class Admin {
7272
7373 async nextGroupsPage ( ) {
7474 await this . increseGpage ( )
75- return this . getGroupsWithAuths ( { } )
75+ return this . getGroupsWithPermissions ( { } )
7676 }
7777
7878 async preGroupsPage ( ) {
7979 await this . decreseGpage ( )
80- return this . getGroupsWithAuths ( { } )
80+ return this . getGroupsWithPermissions ( { } )
8181 }
8282
8383 static async getAllGroups ( ) {
@@ -125,7 +125,7 @@ export default class Admin {
125125 return res
126126 }
127127
128- static async dispatchAuths ( group_id , permission_ids ) {
128+ static async dispatchPermissions ( group_id , permission_ids ) {
129129 const res = await post ( 'cms/admin/permission/dispatch/batch' , {
130130 group_id,
131131 permission_ids,
@@ -141,7 +141,7 @@ export default class Admin {
141141 return res
142142 }
143143
144- static async removeAuths ( group_id , permission_ids ) {
144+ static async removePermissions ( group_id , permission_ids ) {
145145 const res = await post ( 'cms/admin/permission/remove' , {
146146 group_id,
147147 permission_ids,
0 commit comments