This commit is contained in:
parent
3f38571c5c
commit
792f6908ac
|
|
@ -1,5 +1,6 @@
|
||||||
package com.czg.admin;
|
package com.czg.admin;
|
||||||
|
|
||||||
|
import com.czg.annotation.SaAdminCheckPermission;
|
||||||
import com.czg.resp.CzgResult;
|
import com.czg.resp.CzgResult;
|
||||||
import com.czg.system.dto.MiniAppPagesDTO;
|
import com.czg.system.dto.MiniAppPagesDTO;
|
||||||
import com.czg.system.service.MiniAppPageService;
|
import com.czg.system.service.MiniAppPageService;
|
||||||
|
|
@ -26,6 +27,7 @@ public class MiniAppPagesController {
|
||||||
* 新增小程序页面
|
* 新增小程序页面
|
||||||
*/
|
*/
|
||||||
@PostMapping
|
@PostMapping
|
||||||
|
@SaAdminCheckPermission("miniAppPages:add")
|
||||||
public CzgResult<Long> insertMiniAppPage(@RequestBody @Validated({InsertGroup.class}) MiniAppPagesDTO pagesDTO) {
|
public CzgResult<Long> insertMiniAppPage(@RequestBody @Validated({InsertGroup.class}) MiniAppPagesDTO pagesDTO) {
|
||||||
return miniAppPageService.insertMiniAppPage(pagesDTO);
|
return miniAppPageService.insertMiniAppPage(pagesDTO);
|
||||||
}
|
}
|
||||||
|
|
@ -34,6 +36,7 @@ public class MiniAppPagesController {
|
||||||
* 修改小程序页面
|
* 修改小程序页面
|
||||||
*/
|
*/
|
||||||
@PutMapping
|
@PutMapping
|
||||||
|
@SaAdminCheckPermission("miniAppPages:update")
|
||||||
public CzgResult<Boolean> updateMiniAppPage(@RequestBody @Validated({UpdateGroup.class}) MiniAppPagesDTO pagesDTO) {
|
public CzgResult<Boolean> updateMiniAppPage(@RequestBody @Validated({UpdateGroup.class}) MiniAppPagesDTO pagesDTO) {
|
||||||
return miniAppPageService.updateMiniAppPage(pagesDTO);
|
return miniAppPageService.updateMiniAppPage(pagesDTO);
|
||||||
}
|
}
|
||||||
|
|
@ -43,6 +46,7 @@ public class MiniAppPagesController {
|
||||||
* @param id 小程序页面主键
|
* @param id 小程序页面主键
|
||||||
*/
|
*/
|
||||||
@DeleteMapping("{id}")
|
@DeleteMapping("{id}")
|
||||||
|
@SaAdminCheckPermission("miniAppPages:delete")
|
||||||
public CzgResult<Boolean> deleteMiniAppPage(@PathVariable Long id) {
|
public CzgResult<Boolean> deleteMiniAppPage(@PathVariable Long id) {
|
||||||
return miniAppPageService.deleteMiniAppPageById(id);
|
return miniAppPageService.deleteMiniAppPageById(id);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -63,18 +63,18 @@ public class SysParamController {
|
||||||
*/
|
*/
|
||||||
@GetMapping("/code/{code}")
|
@GetMapping("/code/{code}")
|
||||||
@SaAdminCheckPermission("sysParams:get:code")
|
@SaAdminCheckPermission("sysParams:get:code")
|
||||||
public CzgResult<SysParamsDTO> deleteCode(@PathVariable String code) {
|
public CzgResult<SysParamsDTO> getParamByCode(@PathVariable String code) {
|
||||||
return sysParamsService.getParamsByCode(code);
|
return sysParamsService.getParamsByCode(code);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据参数类型获取参数
|
* 根据参数类型获取参数列表
|
||||||
* @param type 参数类型
|
* @param type 参数类型
|
||||||
* @return 参数列表
|
* @return 参数列表
|
||||||
*/
|
*/
|
||||||
@GetMapping("/type/{type}")
|
@GetMapping("/type/{type}")
|
||||||
@SaAdminCheckPermission("sysParams:get:type")
|
@SaAdminCheckPermission("sysParams:get:type")
|
||||||
public CzgResult<List<SysParamsDTO>> deleteType(@PathVariable String type) {
|
public CzgResult<List<SysParamsDTO>> getParamsByType(@PathVariable String type) {
|
||||||
return sysParamsService.getParamsByType(Integer.valueOf(type));
|
return sysParamsService.getParamsByType(Integer.valueOf(type));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue