|
|
@@ -49,17 +49,17 @@ public class UserConfigController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 添加
|
|
|
+ * 修改添加
|
|
|
* @param req
|
|
|
* @return
|
|
|
*/
|
|
|
- @PostMapping("add")
|
|
|
+ @PostMapping("config")
|
|
|
@ResponseBody
|
|
|
- @Operation(summary = "添加用户配置表")
|
|
|
+ @Operation(summary = "修改添加用户配置表")
|
|
|
@Parameter(name="token",description = "token",required = true,in = ParameterIn.HEADER)
|
|
|
public Result add(@RequestBody UserConfig req) throws Exception{
|
|
|
log.info("addUserConfig>>:{}",req);
|
|
|
- return userConfigService.add(req);
|
|
|
+ return userConfigService.config(req);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -76,21 +76,5 @@ public class UserConfigController {
|
|
|
return userConfigService.delete(req.getId());
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 根据用户id进行修改
|
|
|
- * @param req
|
|
|
- * @return
|
|
|
- */
|
|
|
- @PostMapping("update")
|
|
|
- @ResponseBody
|
|
|
- @Operation(summary = "修改用户配置表")
|
|
|
- @Parameter(name="token",description = "token",required = true,in = ParameterIn.HEADER)
|
|
|
- public Result edit(@RequestBody UserConfig req){
|
|
|
- log.info("updateUserConfig>>:{}",req);
|
|
|
- if(StringUtil.isEmpty(req.getId())) {
|
|
|
- return Result.fail(CommonConstant.LACK_PARAM);
|
|
|
- }
|
|
|
- return userConfigService.edit(req);
|
|
|
- }
|
|
|
|
|
|
}
|