import{A as e}from"./Api.a196f191.js";import{E as s}from"./Enum.2b540114.js";const t={list:e.create("/sys/resources","get"),detail:e.create("/sys/resources/{id}","get"),save:e.create("/sys/resources","post"),update:e.create("/sys/resources/{id}","put"),del:e.create("/sys/resources/{id}","delete"),changeStatus:e.create("/sys/resources/{id}/{status}","put")},r={list:e.create("/sys/roles","get"),save:e.create("/sys/roles","post"),update:e.create("/sys/roles/{id}","put"),del:e.create("/sys/roles/{id}","delete"),roleResourceIds:e.create("/sys/roles/{id}/resourceIds","get"),roleResources:e.create("/sys/roles/{id}/resources","get"),saveResources:e.create("/sys/roles/{id}/resources","post")},a={list:e.create("/sys/accounts","get"),save:e.create("/sys/accounts","post"),update:e.create("/sys/accounts/{id}","put"),del:e.create("/sys/accounts/{id}","delete"),changeStatus:e.create("/sys/accounts/{id}/{status}","put"),roleIds:e.create("/sys/accounts/{id}/roleIds","get"),roles:e.create("/sys/accounts/{id}/roles","get"),resources:e.create("/sys/accounts/{id}/resources","get"),saveRoles:e.create("/sys/accounts/roles","post")};e.create("/sys/logs","get");var c={ResourceTypeEnum:new s().add("MENU","\u83DC\u5355",1).add("PERMISSION","\u6743\u9650",2),accountStatus:new s().add("ENABLE","\u6B63\u5E38",1).add("DISABLE","\u7981\u7528",-1),logType:new s().add("UPDATE","\u4FEE\u6539",2).add("DELETE","\u5220\u9664",3).add("SYS_LOG","\u7CFB\u7EDF",4).add("ERR_LOG","\u5F02\u5E38",5)};export{r as a,a as b,c as e,t as r};
