Skip to content

Commit 938492a

Browse files
committed
友情链接 标签
1 parent e17e724 commit 938492a

11 files changed

Lines changed: 289 additions & 0 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package info.xiaomo.admin.controller;
2+
3+
import org.springframework.web.bind.annotation.RequestMapping;
4+
import org.springframework.web.bind.annotation.RestController;
5+
6+
/**
7+
* 把今天最好的表现当作明天最新的起点..~
8+
* いま 最高の表現 として 明日最新の始発..~
9+
* Today the best performance as tomorrow newest starter!
10+
* Created by IntelliJ IDEA.
11+
*
12+
* @author: xiaomo
13+
* @github: https://github.com/qq83387856
14+
* @email: hupengbest@163.com
15+
* @QQ_NO: 83387856
16+
* @Date: 2016/4/1119:55
17+
* @Description:
18+
* @Copyright(©) 2015 by xiaomo.
19+
**/
20+
@RestController
21+
@RequestMapping("/api/admin/link")
22+
public class LinkController {
23+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
package info.xiaomo.admin.controller;
2+
3+
import info.xiaomo.core.controller.BaseController;
4+
import org.springframework.web.bind.annotation.RequestMapping;
5+
import org.springframework.web.bind.annotation.RequestParam;
6+
import org.springframework.web.bind.annotation.RestController;
7+
8+
import java.util.HashMap;
9+
10+
/**
11+
* 把今天最好的表现当作明天最新的起点..~
12+
* いま 最高の表現 として 明日最新の始発..~
13+
* Today the best performance as tomorrow newest starter!
14+
* Created by IntelliJ IDEA.
15+
*
16+
* @author: xiaomo
17+
* @github: https://github.com/qq83387856
18+
* @email: hupengbest@163.com
19+
* @QQ_NO: 83387856
20+
* @Date: 2016/4/1119:45
21+
* @Description:
22+
* @Copyright(©) 2015 by xiaomo.
23+
**/
24+
@RestController
25+
@RequestMapping("/api/admin/tag")
26+
public class TagController extends BaseController {
27+
28+
@RequestMapping("findById")
29+
public HashMap<String,Object> findTagById(@RequestParam Long id){
30+
31+
return result;
32+
}
33+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package info.xiaomo.core.dao;
2+
3+
import info.xiaomo.core.model.LinkModel;
4+
import org.springframework.data.jpa.repository.JpaRepository;
5+
import org.springframework.stereotype.Repository;
6+
7+
/**
8+
* 把今天最好的表现当作明天最新的起点..~
9+
* いま 最高の表現 として 明日最新の始発..~
10+
* Today the best performance as tomorrow newest starter!
11+
* Created by IntelliJ IDEA.
12+
*
13+
* @author: xiaomo
14+
* @github: https://github.com/qq83387856
15+
* @email: hupengbest@163.com
16+
* @QQ_NO: 83387856
17+
* @Date: 2016/4/1119:52
18+
* @Description:
19+
* @Copyright(©) 2015 by xiaomo.
20+
**/
21+
@Repository
22+
public interface LinkDao extends JpaRepository<LinkModel, Long> {
23+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
package info.xiaomo.core.dao;
2+
3+
import info.xiaomo.core.model.TagModel;
4+
import org.springframework.data.jpa.repository.JpaRepository;
5+
import org.springframework.stereotype.Repository;
6+
7+
/**
8+
* 把今天最好的表现当作明天最新的起点..~
9+
* いま 最高の表現 として 明日最新の始発..~
10+
* Today the best performance as tomorrow newest starter!
11+
* Created by IntelliJ IDEA.
12+
*
13+
* @author: xiaomo
14+
* @github: https://github.com/qq83387856
15+
* @email: hupengbest@163.com
16+
* @QQ_NO: 83387856
17+
* @Date: 2016/4/1119:52
18+
* @Description:
19+
* @Copyright(©) 2015 by xiaomo.
20+
**/
21+
@Repository
22+
public interface TagDao extends JpaRepository<TagModel, Long> {
23+
24+
25+
26+
}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
package info.xiaomo.core.model;
2+
3+
import info.xiaomo.core.model.base.BaseModel;
4+
5+
import javax.persistence.Entity;
6+
import javax.persistence.Table;
7+
8+
/**
9+
* 把今天最好的表现当作明天最新的起点..~
10+
* いま 最高の表現 として 明日最新の始発..~
11+
* Today the best performance as tomorrow newest starter!
12+
* Created by IntelliJ IDEA.
13+
*
14+
* @author: xiaomo
15+
* @github: https://github.com/qq83387856
16+
* @email: hupengbest@163.com
17+
* @QQ_NO: 83387856
18+
* @Date: 2016/4/1119:47
19+
* @Description:
20+
* @Copyright(©) 2015 by xiaomo.
21+
**/
22+
@Entity
23+
@Table(name = "link")
24+
public class LinkModel extends BaseModel {
25+
26+
private String name;
27+
28+
private String url;
29+
30+
31+
public String getName() {
32+
return name;
33+
}
34+
35+
public void setName(String name) {
36+
this.name = name;
37+
}
38+
39+
public String getUrl() {
40+
return url;
41+
}
42+
43+
public void setUrl(String url) {
44+
this.url = url;
45+
}
46+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package info.xiaomo.core.service;
2+
3+
/**
4+
* 把今天最好的表现当作明天最新的起点..~
5+
* いま 最高の表現 として 明日最新の始発..~
6+
* Today the best performance as tomorrow newest starter!
7+
* Created by IntelliJ IDEA.
8+
*
9+
* @author: xiaomo
10+
* @github: https://github.com/qq83387856
11+
* @email: hupengbest@163.com
12+
* @QQ_NO: 83387856
13+
* @Date: 2016/4/1119:49
14+
* @Description:
15+
* @Copyright(©) 2015 by xiaomo.
16+
**/
17+
public interface LinkService {
18+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package info.xiaomo.core.service;
2+
3+
/**
4+
* 把今天最好的表现当作明天最新的起点..~
5+
* いま 最高の表現 として 明日最新の始発..~
6+
* Today the best performance as tomorrow newest starter!
7+
* Created by IntelliJ IDEA.
8+
*
9+
* @author: xiaomo
10+
* @github: https://github.com/qq83387856
11+
* @email: hupengbest@163.com
12+
* @QQ_NO: 83387856
13+
* @Date: 2016/4/1119:49
14+
* @Description:
15+
* @Copyright(©) 2015 by xiaomo.
16+
**/
17+
public interface TagService {
18+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package info.xiaomo.core.service.impl;
2+
3+
import info.xiaomo.core.service.LinkService;
4+
import org.springframework.stereotype.Service;
5+
6+
/**
7+
* 把今天最好的表现当作明天最新的起点..~
8+
* いま 最高の表現 として 明日最新の始発..~
9+
* Today the best performance as tomorrow newest starter!
10+
* Created by IntelliJ IDEA.
11+
*
12+
* @author: xiaomo
13+
* @github: https://github.com/qq83387856
14+
* @email: hupengbest@163.com
15+
* @QQ_NO: 83387856
16+
* @Date: 2016/4/1119:50
17+
* @Description: 友情链接
18+
* @Copyright(©) 2015 by xiaomo.
19+
**/
20+
@Service
21+
public class LinkServiceImpl implements LinkService {
22+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package info.xiaomo.core.service.impl;
2+
3+
import info.xiaomo.core.service.TagService;
4+
import org.springframework.stereotype.Service;
5+
6+
/**
7+
* 把今天最好的表现当作明天最新的起点..~
8+
* いま 最高の表現 として 明日最新の始発..~
9+
* Today the best performance as tomorrow newest starter!
10+
* Created by IntelliJ IDEA.
11+
*
12+
* @author: xiaomo
13+
* @github: https://github.com/qq83387856
14+
* @email: hupengbest@163.com
15+
* @QQ_NO: 83387856
16+
* @Date: 2016/4/1119:49
17+
* @Description: 标签
18+
* @Copyright(©) 2015 by xiaomo.
19+
**/
20+
@Service
21+
public class TagServiceImpl implements TagService {
22+
23+
24+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package info.xiaomo.web.controller;
2+
3+
import org.springframework.web.bind.annotation.RequestMapping;
4+
import org.springframework.web.bind.annotation.RestController;
5+
6+
/**
7+
* 把今天最好的表现当作明天最新的起点..~
8+
* いま 最高の表現 として 明日最新の始発..~
9+
* Today the best performance as tomorrow newest starter!
10+
* Created by IntelliJ IDEA.
11+
*
12+
* @author: xiaomo
13+
* @github: https://github.com/qq83387856
14+
* @email: hupengbest@163.com
15+
* @QQ_NO: 83387856
16+
* @Date: 2016/4/1119:55
17+
* @Description:
18+
* @Copyright(©) 2015 by xiaomo.
19+
**/
20+
@RestController
21+
@RequestMapping("/api/web/link")
22+
public class LinkController {
23+
}

0 commit comments

Comments
 (0)