Commit 8df98584 by flying-cattle

提交修改细节

parent ab999614
...@@ -86,12 +86,12 @@ import java.io.Serializable; ...@@ -86,12 +86,12 @@ import java.io.Serializable;
* *
* <p>说明: 用户实体类</P> * <p>说明: 用户实体类</P>
* @version: V1.0 * @version: V1.0
* @author: BianPeng * @author: flying-cattle
* *
* Modification History: * Modification History:
* Date Author Version Description * Date Author Version Description
*---------------------------------------------------------------* *---------------------------------------------------------------*
* 2019年4月9日 BianPeng V1.0 initialize * 2019年4月9日 flying-cattle V1.0 initialize
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
...@@ -157,12 +157,12 @@ import com.xin.usercenter.entity.User; ...@@ -157,12 +157,12 @@ import com.xin.usercenter.entity.User;
* *
* <p>说明: 用户数据访问层</P> * <p>说明: 用户数据访问层</P>
* @version: V1.0 * @version: V1.0
* @author: BianPeng * @author: flying-cattle
* *
* Modification History: * Modification History:
* Date Author Version Description * Date Author Version Description
*---------------------------------------------------------------* *---------------------------------------------------------------*
* 2019年4月9日 BianPeng V1.0 initialize * 2019年4月9日 flying-cattle V1.0 initialize
*/ */
@Mapper @Mapper
public interface UserDao extends BaseMapper<User> { public interface UserDao extends BaseMapper<User> {
...@@ -204,12 +204,12 @@ import com.baomidou.mybatisplus.extension.service.IService; ...@@ -204,12 +204,12 @@ import com.baomidou.mybatisplus.extension.service.IService;
* *
* <p>说明: 用户服务层</P> * <p>说明: 用户服务层</P>
* @version: V1.0 * @version: V1.0
* @author: BianPeng * @author: flying-cattle
* *
* Modification History: * Modification History:
* Date Author Version Description * Date Author Version Description
*---------------------------------------------------------------* *---------------------------------------------------------------*
* 2019年4月9日 BianPeng V1.0 initialize * 2019年4月9日 flying-cattle V1.0 initialize
*/ */
public interface UserService extends IService<User> { public interface UserService extends IService<User> {
...@@ -228,12 +228,12 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; ...@@ -228,12 +228,12 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
* *
* <p>说明: 用户服务实现层</P> * <p>说明: 用户服务实现层</P>
* @version: V1.0 * @version: V1.0
* @author: BianPeng * @author: flying-cattle
* *
* Modification History: * Modification History:
* Date Author Version Description * Date Author Version Description
*---------------------------------------------------------------* *---------------------------------------------------------------*
* 2019年4月9日 BianPeng V1.0 initialize * 2019年4月9日 flying-cattle V1.0 initialize
*/ */
@Service @Service
public class UserServiceImpl extends ServiceImpl<UserDao, User> implements UserService { public class UserServiceImpl extends ServiceImpl<UserDao, User> implements UserService {
...@@ -266,12 +266,12 @@ import org.springframework.beans.factory.annotation.Autowired; ...@@ -266,12 +266,12 @@ import org.springframework.beans.factory.annotation.Autowired;
* *
* <p>说明: 用户API接口层</P> * <p>说明: 用户API接口层</P>
* @version: V1.0 * @version: V1.0
* @author: BianPeng * @author: flying-cattle
* *
* Modification History: * Modification History:
* Date Author Version Description * Date Author Version Description
*---------------------------------------------------------------* *---------------------------------------------------------------*
* 2019年4月9日 BianPeng V1.0 initialize * 2019年4月9日 flying-cattle V1.0 initialize
*/ */
@Api(description = "用户",value="用户" ) @Api(description = "用户",value="用户" )
@RestController @RestController
...@@ -287,11 +287,11 @@ public class UserController { ...@@ -287,11 +287,11 @@ public class UserController {
* @explain 查询用户对象 <swagger GET请求> * @explain 查询用户对象 <swagger GET请求>
* @param 对象参数:id * @param 对象参数:id
* @return user * @return user
* @author BianPeng * @author flying-cattle
* @time 2019年4月9日 * @time 2019年4月9日
*/ */
@GetMapping("/getUserById/{id}") @GetMapping("/getUserById/{id}")
@ApiOperation(value = "获取用户信息", notes = "获取用户信息[user],作者:BianPeng") @ApiOperation(value = "获取用户信息", notes = "获取用户信息[user],作者:flying-cattle")
@ApiImplicitParam(paramType="path", name = "id", value = "用户id", required = true, dataType = "Long") @ApiImplicitParam(paramType="path", name = "id", value = "用户id", required = true, dataType = "Long")
public JsonResult<User> getUserById(@PathVariable("id")Long id){ public JsonResult<User> getUserById(@PathVariable("id")Long id){
JsonResult<User> result=new JsonResult<User>(); JsonResult<User> result=new JsonResult<User>();
...@@ -316,11 +316,11 @@ public class UserController { ...@@ -316,11 +316,11 @@ public class UserController {
* @explain 添加或者更新用户对象 * @explain 添加或者更新用户对象
* @param 对象参数:user * @param 对象参数:user
* @return int * @return int
* @author BianPeng * @author flying-cattle
* @time 2019年4月9日 * @time 2019年4月9日
*/ */
@PostMapping("/insertSelective") @PostMapping("/insertSelective")
@ApiOperation(value = "添加用户", notes = "添加用户[user],作者:BianPeng") @ApiOperation(value = "添加用户", notes = "添加用户[user],作者:flying-cattle")
public JsonResult<User> insertSelective(User user){ public JsonResult<User> insertSelective(User user){
JsonResult<User> result=new JsonResult<User>(); JsonResult<User> result=new JsonResult<User>();
try { try {
...@@ -345,11 +345,11 @@ public class UserController { ...@@ -345,11 +345,11 @@ public class UserController {
* @explain 删除用户对象 * @explain 删除用户对象
* @param 对象参数:id * @param 对象参数:id
* @return int * @return int
* @author BianPeng * @author flying-cattle
* @time 2019年4月9日 * @time 2019年4月9日
*/ */
@PostMapping("/deleteByPrimaryKey") @PostMapping("/deleteByPrimaryKey")
@ApiOperation(value = "删除用户", notes = "删除用户,作者:BianPeng") @ApiOperation(value = "删除用户", notes = "删除用户,作者:flying-cattle")
@ApiImplicitParam(paramType="query", name = "id", value = "用户id", required = true, dataType = "Long") @ApiImplicitParam(paramType="query", name = "id", value = "用户id", required = true, dataType = "Long")
public JsonResult<Object> deleteByPrimaryKey(Long id){ public JsonResult<Object> deleteByPrimaryKey(Long id){
JsonResult<Object> result=new JsonResult<Object>(); JsonResult<Object> result=new JsonResult<Object>();
...@@ -375,7 +375,7 @@ public class UserController { ...@@ -375,7 +375,7 @@ public class UserController {
* @explain 分页条件查询用户 * @explain 分页条件查询用户
* @param 对象参数:AppPage<User> * @param 对象参数:AppPage<User>
* @return PageInfo<User> * @return PageInfo<User>
* @author BianPeng * @author flying-cattle
* @time 2019年4月9日 * @time 2019年4月9日
*/ */
@GetMapping("/getUserPages") @GetMapping("/getUserPages")
...@@ -420,12 +420,12 @@ import lombok.extern.slf4j.Slf4j; ...@@ -420,12 +420,12 @@ import lombok.extern.slf4j.Slf4j;
* *
* <p>说明: 用户服务层</P> * <p>说明: 用户服务层</P>
* @version: V1.0 * @version: V1.0
* @author: BianPeng * @author: flying-cattle
* *
* Modification History: * Modification History:
* Date Author Version Description * Date Author Version Description
*---------------------------------------------------------------* *---------------------------------------------------------------*
* 2019年4月9日 BianPeng V1.0 initialize * 2019年4月9日 flying-cattle V1.0 initialize
*/ */
@Slf4j @Slf4j
@Data @Data
......
/**
* Copyright © 2019 dream horse Info. Tech Ltd. All rights reserved.
* @Package: com.github.flying.cattle.mdg.aid
* @author: flying-cattle
* @date: 2019年4月9日 下午8:15:25
*/
package com.github.flying.cattle.mdg.aid; package com.github.flying.cattle.mdg.aid;
/** /**
* @author BianP * Copyright: Copyright (c) 2019
* @explain 常量类 *
* <p>说明: 用户服务层</P>
* @version: V1.0
* @author: flying.cattle
*/ */
public class Const { public class Const {
/********************** 响应 ****************************/ /********************** 响应 ****************************/
......
/**
* Copyright © 2019 dream horse Info. Tech Ltd. All rights reserved.
* @Package: com.github.flying.cattle.mdg.aid
* @author: flying-cattle
* @date: 2019年4月9日 下午8:15:25
*/
package com.github.flying.cattle.mdg.aid; package com.github.flying.cattle.mdg.aid;
import java.io.Serializable; import java.io.Serializable;
...@@ -13,12 +19,7 @@ import lombok.NoArgsConstructor; ...@@ -13,12 +19,7 @@ import lombok.NoArgsConstructor;
* *
* <p>说明: 用户服务层</P> * <p>说明: 用户服务层</P>
* @version: V1.0 * @version: V1.0
* @author: BianPeng * @author: flying-cattle
*
* Modification History:
* Date Author Version Description
*---------------------------------------------------------*
* 2019/4/9 flying-cattle V1.0 initialize
*/ */
@Data @Data
@NoArgsConstructor @NoArgsConstructor
...@@ -46,6 +47,8 @@ public class JsonResult<T> implements Serializable{ ...@@ -46,6 +47,8 @@ public class JsonResult<T> implements Serializable{
/** /**
* <p>返回成功,有数据</p> * <p>返回成功,有数据</p>
* @param T
* @return JsonResult<T>
*/ */
public JsonResult<T> success(T data) { public JsonResult<T> success(T data) {
this.setCode(Const.CODE_SUCCESS); this.setCode(Const.CODE_SUCCESS);
...@@ -68,6 +71,8 @@ public class JsonResult<T> implements Serializable{ ...@@ -68,6 +71,8 @@ public class JsonResult<T> implements Serializable{
} }
/** /**
* <p>返回成功,无数据</p> * <p>返回成功,无数据</p>
* @param message
* @return JsonResult<T>
*/ */
public JsonResult<T> error(String message) { public JsonResult<T> error(String message) {
this.setCode(Const.CODE_FAILED); this.setCode(Const.CODE_FAILED);
......
/** /**
* @filename:Const 2018年6月30日 * Copyright © 2019 dream horse Info. Tech Ltd. All rights reserved.
* @project 紫马 边鹏 V1.0 * @Package: com.github.flying.cattle.mdg.aid
* Copyright(c) 2017 BianP Co. Ltd. * @author: flying-cattle
* All right reserved. * @date: 2019年4月9日 下午8:15:25
*/ */
package com.github.flying.cattle.mdg.aid; package com.github.flying.cattle.mdg.aid;
......
/** /**
* @filename:UserController 2019年4月9日 * @filename:UserController 2019年4月9日
* @project wallet-manage V1.0 * @project wallet-manage V1.0
* Copyright(c) 2018 BianPeng Co. Ltd. * Copyright(c) 2018 flying-cattle Co. Ltd.
* All right reserved. * All right reserved.
*/ */
package com.flying.cattle.mdg; package com.flying.cattle.mdg;
...@@ -22,7 +22,7 @@ import com.github.flying.cattle.mdg.util.MySqlToJavaUtil; ...@@ -22,7 +22,7 @@ import com.github.flying.cattle.mdg.util.MySqlToJavaUtil;
public class MyGenerator { public class MyGenerator {
// 基础信息 // 基础信息
public static final String PROJECT = "springboot-mybatis"; public static final String PROJECT = "springboot-mybatis";
public static final String AUTHOR = "BianPeng"; public static final String AUTHOR = "flying-cattle";
public static final String VERSION = "V1.0"; public static final String VERSION = "V1.0";
// 数据库连接信息 // 数据库连接信息
public static final String URL = "jdbc:mysql://192.168.9.246:3306/buybit_wallet?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&failOverReadOnly=false&useSSL=true&serverTimezone=UTC"; public static final String URL = "jdbc:mysql://192.168.9.246:3306/buybit_wallet?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&failOverReadOnly=false&useSSL=true&serverTimezone=UTC";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment