12 lines
310 B
TypeScript
12 lines
310 B
TypeScript
import { axios } from "timi-web-api";
|
|
import type { Role } from "timi-web-api";
|
|
|
|
const BASE_URI = "/gao/role";
|
|
|
|
export const GaoRoleAPI = {
|
|
/** 查询登录用户所属门店内可管理的角色。 */
|
|
async managementList(): Promise<Role[]> {
|
|
return await axios.post(`${BASE_URI}/management/list`);
|
|
}
|
|
};
|