-
Notifications
You must be signed in to change notification settings - Fork 723
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from geekidea/dev
🏇 5 Minutes Finish CRUD Former-commit-id: d352970abafd0171f21253d9d10a2020c18143ea
- Loading branch information
Showing
15 changed files
with
523 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 51 additions & 0 deletions
51
src/main/java/io/geekidea/springbootplus/system/entity/SysUser.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
package io.geekidea.springbootplus.system.entity; | ||
|
||
import com.baomidou.mybatisplus.annotation.IdType; | ||
import java.util.Date; | ||
import com.baomidou.mybatisplus.annotation.TableId; | ||
import io.geekidea.springbootplus.common.entity.BaseEntity; | ||
import io.swagger.annotations.ApiModel; | ||
import io.swagger.annotations.ApiModelProperty; | ||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
|
||
import java.util.Date; | ||
|
||
/** | ||
* <p> | ||
* SystemUser | ||
* </p> | ||
* | ||
* @author geekidea | ||
* @since 2019-08-26 | ||
*/ | ||
@Data | ||
@EqualsAndHashCode(callSuper = true) | ||
@ApiModel(value="SysUser对象", description="SystemUser") | ||
public class SysUser extends BaseEntity { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
@ApiModelProperty(value = "id") | ||
@TableId(value = "id", type = IdType.ID_WORKER) | ||
private Long id; | ||
|
||
@ApiModelProperty(value = "name") | ||
private String name; | ||
|
||
@ApiModelProperty(value = "account") | ||
private String account; | ||
|
||
@ApiModelProperty(value = "password") | ||
private String pwd; | ||
|
||
@ApiModelProperty(value = "remark") | ||
private String remark; | ||
|
||
@ApiModelProperty(value = "create time") | ||
private Date createTime; | ||
|
||
@ApiModelProperty(value = "update time") | ||
private Date updateTime; | ||
|
||
} |
40 changes: 40 additions & 0 deletions
40
src/main/java/io/geekidea/springbootplus/system/mapper/SysUserMapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package io.geekidea.springbootplus.system.mapper; | ||
|
||
import com.baomidou.mybatisplus.core.metadata.IPage; | ||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | ||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||
import io.geekidea.springbootplus.system.entity.SysUser; | ||
import io.geekidea.springbootplus.system.web.param.SysUserQueryParam; | ||
import io.geekidea.springbootplus.system.web.vo.SysUserQueryVo; | ||
import org.apache.ibatis.annotations.Param; | ||
import org.springframework.stereotype.Repository; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* <p> | ||
* SystemUser Mapper 接口 | ||
* </p> | ||
* | ||
* @author geekidea | ||
* @since 2019-08-26 | ||
*/ | ||
@Repository | ||
public interface SysUserMapper extends BaseMapper<SysUser> { | ||
|
||
/** | ||
* 根据ID获取查询对象 | ||
* @param id | ||
* @return | ||
*/ | ||
SysUserQueryVo getSysUserById(Serializable id); | ||
|
||
/** | ||
* 获取分页对象 | ||
* @param page | ||
* @param sysUserQueryParam | ||
* @return | ||
*/ | ||
IPage<SysUserQueryVo> getSysUserPageList(@Param("page") Page page, @Param("param") SysUserQueryParam sysUserQueryParam); | ||
|
||
} |
35 changes: 35 additions & 0 deletions
35
src/main/java/io/geekidea/springbootplus/system/service/SysUserService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package io.geekidea.springbootplus.system.service; | ||
|
||
import io.geekidea.springbootplus.system.entity.SysUser; | ||
import io.geekidea.springbootplus.common.service.BaseService; | ||
import io.geekidea.springbootplus.system.web.param.SysUserQueryParam; | ||
import io.geekidea.springbootplus.system.web.vo.SysUserQueryVo; | ||
import io.geekidea.springbootplus.common.web.vo.Paging; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* <p> | ||
* SystemUser 服务类 | ||
* </p> | ||
* | ||
* @author geekidea | ||
* @since 2019-08-26 | ||
*/ | ||
public interface SysUserService extends BaseService<SysUser> { | ||
|
||
/** | ||
* 根据ID获取查询对象 | ||
* @param id | ||
* @return | ||
*/ | ||
SysUserQueryVo getSysUserById(Serializable id) throws Exception; | ||
|
||
/** | ||
* 获取分页对象 | ||
* @param sysUserQueryParam | ||
* @return | ||
*/ | ||
Paging<SysUserQueryVo> getSysUserPageList(SysUserQueryParam sysUserQueryParam) throws Exception; | ||
|
||
} |
Oops, something went wrong.