增加zheng-cms-rpc-api模块

This commit is contained in:
shuzheng 2017-01-07 20:43:52 +08:00
parent 44e1647edb
commit dc2c970b64
7 changed files with 141 additions and 0 deletions

View File

@ -0,0 +1,45 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.zheng</groupId>
<artifactId>zheng-cms</artifactId>
<version>1.0.0</version>
</parent>
<artifactId>zheng-cms-rpc-api</artifactId>
<packaging>jar</packaging>
<name>zheng-cms-rpc-api</name>
<url>http://www.zhangshuzheng.cn</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>com.zheng</groupId>
<artifactId>zheng-cms-dao</artifactId>
<version>1.0.0</version>
<type>jar</type>
</dependency>
</dependencies>
<build>
<finalName>zheng-cms-rpc-api</finalName>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
</build>
</project>

View File

@ -0,0 +1,23 @@
package com.zheng.cms.dao.model;
import java.io.Serializable;
import java.util.List;
/**
* 用户VO
* Created by shuzheng on 2016/11/14.
*/
public class UserVO extends User implements Serializable {
private static final long serialVersionUID = 1L;
private List<Book> books;
public List<Book> getBooks() {
return books;
}
public void setBooks(List<Book> books) {
this.books = books;
}
}

View File

@ -0,0 +1,13 @@
package com.zheng.cms.rpc.api;
import com.zheng.cms.dao.model.CmsArticle;
import com.zheng.cms.dao.model.CmsArticleExample;
import com.zheng.common.base.BaseService;
/**
* 文章service接口
* Created by shuzheng on 2016/11/14.
*/
public interface CmsArticleService extends BaseService<CmsArticle, CmsArticleExample> {
}

View File

@ -0,0 +1,13 @@
package com.zheng.cms.rpc.api;
import com.zheng.cms.dao.model.CmsCategory;
import com.zheng.cms.dao.model.CmsCategoryExample;
import com.zheng.common.base.BaseService;
/**
* 类目service接口
* Created by shuzheng on 2016/11/14.
*/
public interface CmsCategoryService extends BaseService<CmsCategory, CmsCategoryExample> {
}

View File

@ -0,0 +1,13 @@
package com.zheng.cms.rpc.api;
import com.zheng.cms.dao.model.CmsComment;
import com.zheng.cms.dao.model.CmsCommentExample;
import com.zheng.common.base.BaseService;
/**
* 评论service接口
* Created by shuzheng on 2016/11/14.
*/
public interface CmsCommentService extends BaseService<CmsComment, CmsCommentExample> {
}

View File

@ -0,0 +1,13 @@
package com.zheng.cms.rpc.api;
import com.zheng.cms.dao.model.CmsTag;
import com.zheng.cms.dao.model.CmsTagExample;
import com.zheng.common.base.BaseService;
/**
* 标签service接口
* Created by shuzheng on 2016/11/14.
*/
public interface CmsTagService extends BaseService<CmsTag, CmsTagExample> {
}

View File

@ -0,0 +1,21 @@
package com.zheng.cms.rpc.api;
import com.zheng.cms.dao.model.User;
import com.zheng.cms.dao.model.UserExample;
import com.zheng.cms.dao.model.UserVO;
import com.zheng.common.base.BaseService;
/**
* 用户service接口
* Created by shuzheng on 2016/11/14.
*/
public interface UserService extends BaseService<User, UserExample> {
/**
* 获取带book数据的用户
* @param id
* @return
*/
UserVO selectUserWithBook(int id);
}