文件管理权限

Raod 3 years ago
parent 04edad6d3d
commit e528ea0281

@ -1,5 +1,6 @@
package com.anjiplus.template.gaea.business.modules.dict.controller;
import com.anji.plus.gaea.annotation.Permission;
import com.anji.plus.gaea.bean.KeyValue;
import com.anji.plus.gaea.bean.ResponseBean;
import com.anji.plus.gaea.curd.controller.GaeaBaseController;
@ -54,6 +55,7 @@ public class GaeaDictController extends GaeaBaseController<GaeaDictParam, GaeaDi
* @return
*/
@PostMapping("/freshDict")
@Permission(code = "fresh",name = "刷新")
public ResponseBean refreshDict(@RequestBody List<String> dictCodes) {
//刷新
gaeaDictService.refreshCache(dictCodes);
@ -65,6 +67,7 @@ public class GaeaDictController extends GaeaBaseController<GaeaDictParam, GaeaDi
* @return
*/
@GetMapping("/select/{dictCode}")
@Permission(code = "query",name = "下拉")
public ResponseBean select(@PathVariable("dictCode") String dictName){
Locale locale = LocaleContextHolder.getLocale();
//语言

@ -1,5 +1,6 @@
package com.anjiplus.template.gaea.business.modules.file.controller;
import com.anji.plus.gaea.annotation.Permission;
import com.anji.plus.gaea.bean.ResponseBean;
import com.anji.plus.gaea.curd.service.GaeaBaseService;
import com.anjiplus.template.gaea.business.base.BaseController;
@ -30,6 +31,7 @@ public class GaeaFileController extends BaseController<GaeaFileParam, GaeaFile,
private GaeaFileService gaeaFileService;
@PostMapping("/upload")
@Permission(code = "upload", name = "文件上传")
public ResponseBean upload(@RequestParam("file") MultipartFile file) {
return ResponseBean.builder().message("success").data((gaeaFileService.upload(file))).build();
}

Loading…
Cancel
Save