TRX 1 an în urmă
părinte
comite
0fde759e2d

+ 15 - 0
FullCardServer/src/main/java/com/zhongshu/card/server/core/controller/config/ProjectUserConfigController.java

@@ -41,4 +41,19 @@ public class ProjectUserConfigController {
         return this.projectUserConfigService.xcxGetUserConfig(param);
     }
 
+
+    @ResourceAuth(value = "user", type = AuthType.User)
+    @Operation(summary = "保存用户自定义配置信息", description = "保存用户自定义配置信息")
+    @RequestMapping(value = "saveUserConfig", method = {RequestMethod.POST})
+    public ResultContent saveUserConfig(@RequestBody @Valid ProjectUserConfigParam param) {
+        return this.projectUserConfigService.xcxSaveUserConfig(param);
+    }
+
+    @ResourceAuth(value = "user", type = AuthType.User)
+    @Operation(summary = "得到用户自定义配置信息", description = "得到用户自定义配置信息")
+    @RequestMapping(value = "getUserConfig", method = {RequestMethod.POST})
+    public ResultContent getUserConfig(@RequestBody @Valid ProjectUserConfigParam param) {
+        return this.projectUserConfigService.xcxGetUserConfig(param);
+    }
+
 }