|
|
@@ -1,8 +1,16 @@
|
|
|
package com.fs.app.controller.app;
|
|
|
|
|
|
+import com.fs.app.annotation.Login;
|
|
|
import com.fs.app.controller.AppBaseController;
|
|
|
+import com.fs.common.core.domain.R;
|
|
|
+import com.fs.his.param.FsUserAddIntegralTemplateParam;
|
|
|
+import com.fs.his.service.IFsUserIntegralLogsService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
@@ -14,8 +22,26 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
*/
|
|
|
@Api("app登录接口")
|
|
|
@RestController
|
|
|
-@RequestMapping(value="/app/api")
|
|
|
+@RequestMapping(value = "/app/api")
|
|
|
@Slf4j
|
|
|
public class AppController extends AppBaseController {
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private IFsUserIntegralLogsService userIntegralLogsService;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @Description: APP 获取积分 28-下载
|
|
|
+ * @Param:
|
|
|
+ * @Return:
|
|
|
+ * @Author xgb
|
|
|
+ * @Date 2026/2/3 11:06
|
|
|
+ */
|
|
|
+ @ApiOperation("添加积分")
|
|
|
+ @Login
|
|
|
+ @PostMapping("/addIntegral")
|
|
|
+ public R addIntegral(@RequestBody FsUserAddIntegralTemplateParam param) {
|
|
|
+ param.setUserId(Long.parseLong(getUserId()));
|
|
|
+ return userIntegralLogsService.addIntegralTemplate(param);
|
|
|
+ }
|
|
|
+
|
|
|
}
|