|
|
@@ -0,0 +1,30 @@
|
|
|
+package com.fs.app.controller;
|
|
|
+
|
|
|
+import com.fs.app.annotation.Login;
|
|
|
+import com.fs.common.core.domain.R;
|
|
|
+import com.fs.his.domain.FsSignArticle;
|
|
|
+import com.fs.his.service.IFsSignArticleService;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+@Api("打卡文章接口")
|
|
|
+@RestController
|
|
|
+@RequestMapping(value="/app/signArticle")
|
|
|
+public class SignArticleController extends AppBaseController {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private IFsSignArticleService signArticleService;
|
|
|
+
|
|
|
+ @Login
|
|
|
+ @ApiOperation("获取打卡文章详情")
|
|
|
+ @GetMapping("/detail")
|
|
|
+ public R detail(@RequestParam("articleId") Long articleId){
|
|
|
+ FsSignArticle article = signArticleService.selectFsSignArticleById(articleId);
|
|
|
+ return R.ok().put("article", article);
|
|
|
+ }
|
|
|
+}
|