Skip to content

Commit 6ee8c3e

Browse files
committed
御魂
1 parent 520d64e commit 6ee8c3e

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed

application/src/main/java/info/xiaomo/application/controller/ShikigamaController.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
import info.xiaomo.core.constant.Err;
66
import info.xiaomo.core.controller.BaseController;
77
import info.xiaomo.core.controller.Result;
8+
import io.swagger.annotations.Api;
9+
import io.swagger.annotations.ApiOperation;
810
import org.springframework.beans.factory.annotation.Autowired;
11+
import org.springframework.http.MediaType;
912
import org.springframework.web.bind.annotation.RequestMapping;
1013
import org.springframework.web.bind.annotation.RequestMethod;
1114
import org.springframework.web.bind.annotation.RestController;
@@ -18,6 +21,7 @@
1821
*/
1922
@RestController
2023
@RequestMapping("/shikigami")
24+
@Api(value = "ShikigamaController",description = "阴阳师式神相关api")
2125
public class ShikigamaController extends BaseController {
2226

2327
private final ShikigamaService shikigamaService;
@@ -30,6 +34,7 @@ public ShikigamaController(ShikigamaService shikigamaService) {
3034

3135

3236
@RequestMapping(value = "/findAll", method = RequestMethod.GET)
37+
@ApiOperation(value = "查找所有式神", notes = "查找所有式神", httpMethod = "GET", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
3338
public Result<List> findAll() {
3439
List<ShikigamiModel> all = shikigamaService.findAll();
3540
if (all == null || all.size() == 0) {
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
package info.xiaomo.crawler.model;
2+
3+
import info.xiaomo.crawler.model.base.BaseModel;
4+
5+
/**
6+
* @author 小莫 (https://xiaomo.info) (https://github.com/syoubaku)
7+
* @created : 2016/12/24 18:06
8+
* 御魂模型
9+
*/
10+
public class MitamaModel extends BaseModel {
11+
12+
/**
13+
* 名字
14+
* 火灵
15+
*/
16+
private String name;
17+
18+
/**
19+
* icon
20+
* http://uus-ng.img.d.cn/snapshot/201610/999/image/388/388/hd/20161012151646257.jpeg
21+
*/
22+
private String image;
23+
24+
/**
25+
* 两件套效果
26+
* 效果命中+15%
27+
*/
28+
private String effect2;
29+
30+
/**
31+
* 四件套效果
32+
* 初次出场时获得额外3点鬼火(新回目战斗开始也会被计为初次出场)
33+
*/
34+
private String effect4;
35+
36+
/**
37+
* 关键字
38+
*/
39+
private String keyworld;
40+
41+
/**
42+
* 推荐式神
43+
* 青行灯
44+
*/
45+
private String suggest;
46+
47+
48+
/**
49+
* 获取方式
50+
* 神秘商店、周末御魂
51+
*/
52+
private String getWay;
53+
54+
55+
}

0 commit comments

Comments
 (0)