package com.gkhy.hazmat.admin.controller.app;
|
|
import com.gkhy.hazmat.common.api.CommonResult;
|
import com.gkhy.hazmat.system.service.SysConfigService;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.security.access.prepost.PreAuthorize;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
@Api(tags = "APP系统配置前端控制器")
|
@RestController
|
@RequestMapping("/app/config")
|
public class AppConfigController {
|
@Autowired
|
private SysConfigService configService;
|
|
@PreAuthorize("hasAnyAuthority('hazmat:manage:company','hazmat:manage:common')")
|
@ApiOperation(value = "查询当前用户公司配置")
|
@GetMapping(value = "/getConfigByUser")
|
public CommonResult getConfigByUser(){
|
return CommonResult.success(configService.getConfigByUser());
|
}
|
}
|