package Ġcom . fp w ag . admin . interfaces . sys Ċ Ċ import Ġcom . fp w ag . admin . domain . dto . input . command . Role Add Cmd Ċ import Ġcom . fp w ag . admin . domain . dto . input . command . Role Assign Cmd Ċ import Ġcom . fp w ag . admin . domain . dto . input . command . Role Auth Cmd Ċ import Ġcom . fp w ag . admin . domain . dto . input . command . Role Edit Cmd Ċ import Ġcom . fp w ag . admin . domain . dto . input . query . Role Query Ċ import Ġcom . fp w ag . admin . domain . dto . output . Role Dto Ċ import Ġcom . fp w ag . admin . domain . service . Role Service Ċ import Ġcom . fp w ag . boot . data . mybatis . Page Result Ċ import Ġcom . fp w ag . boot . logging . annotation . System Log Ċ import Ġorg . springframework . beans . factory . annotation . Autowired Ċ import Ġorg . springframework . data . domain . Page able Ċ import Ġorg . springframework . security . access . pre post . Pre Authorize Ċ import Ġorg . springframework . validation . annotation . Validated Ċ import Ġorg . springframework . web . bind . annotation .* Ċ Ċ /** Ċ Ġ* Ġ è§Ĵèī² ç®¡çĲĨ Ċ Ġ* Ċ Ġ* Ġ@ author Ġf pw ag Ċ Ġ*/ Ċ @ System Log ( value Ġ= Ġ" è§Ĵèī² ç®¡çĲĨ ") Ċ @ RestController Ċ @ RequestMapping ("/ sys / role ") Ċ class ĠRole Controller Ġ{ ĊĠĠĠ Ġ@ Autowired ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġservice : ĠRole Service ĊĊĠĠĠ Ġ@ Pre Authorize ("@ pms . has Permission (' sys : role : list ') ") ĊĠĠĠ Ġ@ System Log ( value Ġ= Ġ" è§Ĵèī² åĪĨé¡µ ", Ġtype Ġ= ĠSystem Log . Type . QUERY ) ĊĠĠĠ Ġ@ GetMapping ĊĠĠĠ Ġfun Ġfind Page ( query : ĠRole Query , Ġpage able : ĠPage able ): ĠPage Result < Role Dto >? Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġthis . service . find Page ( query , Ġpage able ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Pre Authorize ("@ pms . has Permission (' sys : role : add ') ") ĊĠĠĠ Ġ@ System Log ( value Ġ= Ġ" æĸ°å¢ŀ è§Ĵèī² ", Ġtype Ġ= ĠSystem Log . Type . INSERT ) ĊĠĠĠ Ġ@ PostMapping ĊĠĠĠ Ġfun Ġinsert (@ Validated Ġ@ RequestBody Ġcommand : ĠRole Add Cmd ): ĠAny ? Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġthis . service . save ( command ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Pre Authorize ("@ pms . has Permission (' sys : role : auth ') ") ĊĠĠĠ Ġ@ System Log ( value Ġ= Ġ" è§Ĵèī² æİĪæĿĥ ", Ġtype Ġ= ĠSystem Log . Type . UPDATE ) ĊĠĠĠ Ġ@ Put Mapping (" auth ") ĊĠĠĠ Ġfun Ġrole Auth (@ Validated Ġ@ RequestBody Ġcommand : ĠRole Auth Cmd ): ĠAny ? Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġthis . service . auth Menus ( command ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Pre Authorize ("@ pms . has Permission (' sys : role : edit ') ") ĊĠĠĠ Ġ@ System Log ( value Ġ= Ġ" çĶ¨æĪ· åĪĨéħį ", Ġtype Ġ= ĠSystem Log . Type . UPDATE ) ĊĠĠĠ Ġ@ Put Mapping (" assign ") ĊĠĠĠ Ġfun Ġassign (@ Validated Ġ@ RequestBody Ġcommand : ĠRole Assign Cmd ): ĠAny ? Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġthis . service . assign Users ( command ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Pre Authorize ("@ pms . has Permission (' sys : role : edit ') ") ĊĠĠĠ Ġ@ System Log ( value Ġ= Ġ" ä¿®æĶ¹ è§Ĵèī² ", Ġtype Ġ= ĠSystem Log . Type . UPDATE ) ĊĠĠĠ Ġ@ Put Mapping ĊĠĠĠ Ġfun Ġupdate (@ Validated Ġ@ RequestBody Ġcommand : ĠRole Edit Cmd ): ĠAny ? Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġthis . service . update ( command ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Pre Authorize ("@ pms . has Permission (' sys : role : del ') ") ĊĠĠĠ Ġ@ System Log ( value Ġ= Ġ" åĪłéĻ¤ è§Ĵèī² ", Ġtype Ġ= ĠSystem Log . Type . DELETE ) ĊĠĠĠ Ġ@ Delete Mapping ĊĠĠĠ Ġfun Ġdelete (@ RequestBody Ġids : ĠMutable Set < String >): ĠAny ? Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġthis . service . delete ( ids ) ĊĠĠĠ Ġ} Ċ } Ċ