55 changed files with 4517 additions and 5 deletions
@ -0,0 +1,106 @@ |
|||
package com.coin.business.controller; |
|||
|
|||
import java.util.List; |
|||
import java.util.Arrays; |
|||
|
|||
import lombok.RequiredArgsConstructor; |
|||
import javax.servlet.http.HttpServletResponse; |
|||
import javax.validation.constraints.*; |
|||
import cn.dev33.satoken.annotation.SaCheckPermission; |
|||
import org.springframework.web.bind.annotation.*; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import com.coin.common.annotation.RepeatSubmit; |
|||
import com.coin.common.annotation.Log; |
|||
import com.coin.common.core.controller.BaseController; |
|||
import com.coin.common.core.domain.PageQuery; |
|||
import com.coin.common.core.domain.R; |
|||
import com.coin.common.core.validate.AddGroup; |
|||
import com.coin.common.core.validate.EditGroup; |
|||
import com.coin.common.enums.BusinessType; |
|||
import com.coin.common.utils.poi.ExcelUtil; |
|||
import com.coin.business.domain.vo.UserAccountVo; |
|||
import com.coin.business.domain.bo.UserAccountBo; |
|||
import com.coin.business.service.IUserAccountService; |
|||
import com.coin.common.core.page.TableDataInfo; |
|||
|
|||
/** |
|||
* 用户账户 |
|||
* |
|||
* @author coin |
|||
* @date 2025-02-21 |
|||
*/ |
|||
@Validated |
|||
@RequiredArgsConstructor |
|||
@RestController |
|||
@RequestMapping("/business/userAccount") |
|||
public class UserAccountController extends BaseController { |
|||
|
|||
private final IUserAccountService iUserAccountService; |
|||
|
|||
/** |
|||
* 查询用户账户列表 |
|||
*/ |
|||
@SaCheckPermission("business:userAccount:list") |
|||
@GetMapping("/list") |
|||
public TableDataInfo<UserAccountVo> list(UserAccountBo bo, PageQuery pageQuery) { |
|||
return iUserAccountService.queryPageList(bo, pageQuery); |
|||
} |
|||
|
|||
/** |
|||
* 导出用户账户列表 |
|||
*/ |
|||
@SaCheckPermission("business:userAccount:export") |
|||
@Log(title = "用户账户", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
public void export(UserAccountBo bo, HttpServletResponse response) { |
|||
List<UserAccountVo> list = iUserAccountService.queryList(bo); |
|||
ExcelUtil.exportExcel(list, "用户账户", UserAccountVo.class, response); |
|||
} |
|||
|
|||
/** |
|||
* 获取用户账户详细信息 |
|||
* |
|||
* @param id 主键 |
|||
*/ |
|||
@SaCheckPermission("business:userAccount:query") |
|||
@GetMapping("/{id}") |
|||
public R<UserAccountVo> getInfo(@NotNull(message = "主键不能为空") |
|||
@PathVariable Long id) { |
|||
return R.ok(iUserAccountService.queryById(id)); |
|||
} |
|||
|
|||
/** |
|||
* 新增用户账户 |
|||
*/ |
|||
@SaCheckPermission("business:userAccount:add") |
|||
@Log(title = "用户账户", businessType = BusinessType.INSERT) |
|||
@RepeatSubmit() |
|||
@PostMapping() |
|||
public R<Void> add(@Validated(AddGroup.class) @RequestBody UserAccountBo bo) { |
|||
return toAjax(iUserAccountService.insertByBo(bo)); |
|||
} |
|||
|
|||
/** |
|||
* 修改用户账户 |
|||
*/ |
|||
@SaCheckPermission("business:userAccount:edit") |
|||
@Log(title = "用户账户", businessType = BusinessType.UPDATE) |
|||
@RepeatSubmit() |
|||
@PutMapping() |
|||
public R<Void> edit(@Validated(EditGroup.class) @RequestBody UserAccountBo bo) { |
|||
return toAjax(iUserAccountService.updateByBo(bo)); |
|||
} |
|||
|
|||
/** |
|||
* 删除用户账户 |
|||
* |
|||
* @param ids 主键串 |
|||
*/ |
|||
@SaCheckPermission("business:userAccount:remove") |
|||
@Log(title = "用户账户", businessType = BusinessType.DELETE) |
|||
@DeleteMapping("/{ids}") |
|||
public R<Void> remove(@NotEmpty(message = "主键不能为空") |
|||
@PathVariable Long[] ids) { |
|||
return toAjax(iUserAccountService.deleteWithValidByIds(Arrays.asList(ids), true)); |
|||
} |
|||
} |
@ -0,0 +1,106 @@ |
|||
package com.coin.business.controller; |
|||
|
|||
import java.util.List; |
|||
import java.util.Arrays; |
|||
|
|||
import lombok.RequiredArgsConstructor; |
|||
import javax.servlet.http.HttpServletResponse; |
|||
import javax.validation.constraints.*; |
|||
import cn.dev33.satoken.annotation.SaCheckPermission; |
|||
import org.springframework.web.bind.annotation.*; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import com.coin.common.annotation.RepeatSubmit; |
|||
import com.coin.common.annotation.Log; |
|||
import com.coin.common.core.controller.BaseController; |
|||
import com.coin.common.core.domain.PageQuery; |
|||
import com.coin.common.core.domain.R; |
|||
import com.coin.common.core.validate.AddGroup; |
|||
import com.coin.common.core.validate.EditGroup; |
|||
import com.coin.common.enums.BusinessType; |
|||
import com.coin.common.utils.poi.ExcelUtil; |
|||
import com.coin.business.domain.vo.UserCardVo; |
|||
import com.coin.business.domain.bo.UserCardBo; |
|||
import com.coin.business.service.IUserCardService; |
|||
import com.coin.common.core.page.TableDataInfo; |
|||
|
|||
/** |
|||
* 用户银行卡 |
|||
* |
|||
* @author coin |
|||
* @date 2025-02-21 |
|||
*/ |
|||
@Validated |
|||
@RequiredArgsConstructor |
|||
@RestController |
|||
@RequestMapping("/business/userCard") |
|||
public class UserCardController extends BaseController { |
|||
|
|||
private final IUserCardService iUserCardService; |
|||
|
|||
/** |
|||
* 查询用户银行卡列表 |
|||
*/ |
|||
@SaCheckPermission("business:userCard:list") |
|||
@GetMapping("/list") |
|||
public TableDataInfo<UserCardVo> list(UserCardBo bo, PageQuery pageQuery) { |
|||
return iUserCardService.queryPageList(bo, pageQuery); |
|||
} |
|||
|
|||
/** |
|||
* 导出用户银行卡列表 |
|||
*/ |
|||
@SaCheckPermission("business:userCard:export") |
|||
@Log(title = "用户银行卡", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
public void export(UserCardBo bo, HttpServletResponse response) { |
|||
List<UserCardVo> list = iUserCardService.queryList(bo); |
|||
ExcelUtil.exportExcel(list, "用户银行卡", UserCardVo.class, response); |
|||
} |
|||
|
|||
/** |
|||
* 获取用户银行卡详细信息 |
|||
* |
|||
* @param id 主键 |
|||
*/ |
|||
@SaCheckPermission("business:userCard:query") |
|||
@GetMapping("/{id}") |
|||
public R<UserCardVo> getInfo(@NotNull(message = "主键不能为空") |
|||
@PathVariable Long id) { |
|||
return R.ok(iUserCardService.queryById(id)); |
|||
} |
|||
|
|||
/** |
|||
* 新增用户银行卡 |
|||
*/ |
|||
@SaCheckPermission("business:userCard:add") |
|||
@Log(title = "用户银行卡", businessType = BusinessType.INSERT) |
|||
@RepeatSubmit() |
|||
@PostMapping() |
|||
public R<Void> add(@Validated(AddGroup.class) @RequestBody UserCardBo bo) { |
|||
return toAjax(iUserCardService.insertByBo(bo)); |
|||
} |
|||
|
|||
/** |
|||
* 修改用户银行卡 |
|||
*/ |
|||
@SaCheckPermission("business:userCard:edit") |
|||
@Log(title = "用户银行卡", businessType = BusinessType.UPDATE) |
|||
@RepeatSubmit() |
|||
@PutMapping() |
|||
public R<Void> edit(@Validated(EditGroup.class) @RequestBody UserCardBo bo) { |
|||
return toAjax(iUserCardService.updateByBo(bo)); |
|||
} |
|||
|
|||
/** |
|||
* 删除用户银行卡 |
|||
* |
|||
* @param ids 主键串 |
|||
*/ |
|||
@SaCheckPermission("business:userCard:remove") |
|||
@Log(title = "用户银行卡", businessType = BusinessType.DELETE) |
|||
@DeleteMapping("/{ids}") |
|||
public R<Void> remove(@NotEmpty(message = "主键不能为空") |
|||
@PathVariable Long[] ids) { |
|||
return toAjax(iUserCardService.deleteWithValidByIds(Arrays.asList(ids), true)); |
|||
} |
|||
} |
@ -0,0 +1,106 @@ |
|||
package com.coin.business.controller; |
|||
|
|||
import java.util.List; |
|||
import java.util.Arrays; |
|||
|
|||
import lombok.RequiredArgsConstructor; |
|||
import javax.servlet.http.HttpServletResponse; |
|||
import javax.validation.constraints.*; |
|||
import cn.dev33.satoken.annotation.SaCheckPermission; |
|||
import org.springframework.web.bind.annotation.*; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import com.coin.common.annotation.RepeatSubmit; |
|||
import com.coin.common.annotation.Log; |
|||
import com.coin.common.core.controller.BaseController; |
|||
import com.coin.common.core.domain.PageQuery; |
|||
import com.coin.common.core.domain.R; |
|||
import com.coin.common.core.validate.AddGroup; |
|||
import com.coin.common.core.validate.EditGroup; |
|||
import com.coin.common.enums.BusinessType; |
|||
import com.coin.common.utils.poi.ExcelUtil; |
|||
import com.coin.business.domain.vo.UserFriendVo; |
|||
import com.coin.business.domain.bo.UserFriendBo; |
|||
import com.coin.business.service.IUserFriendService; |
|||
import com.coin.common.core.page.TableDataInfo; |
|||
|
|||
/** |
|||
* 用户好友 |
|||
* |
|||
* @author coin |
|||
* @date 2025-02-21 |
|||
*/ |
|||
@Validated |
|||
@RequiredArgsConstructor |
|||
@RestController |
|||
@RequestMapping("/business/userFriend") |
|||
public class UserFriendController extends BaseController { |
|||
|
|||
private final IUserFriendService iUserFriendService; |
|||
|
|||
/** |
|||
* 查询用户好友列表 |
|||
*/ |
|||
@SaCheckPermission("business:userFriend:list") |
|||
@GetMapping("/list") |
|||
public TableDataInfo<UserFriendVo> list(UserFriendBo bo, PageQuery pageQuery) { |
|||
return iUserFriendService.queryPageList(bo, pageQuery); |
|||
} |
|||
|
|||
/** |
|||
* 导出用户好友列表 |
|||
*/ |
|||
@SaCheckPermission("business:userFriend:export") |
|||
@Log(title = "用户好友", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
public void export(UserFriendBo bo, HttpServletResponse response) { |
|||
List<UserFriendVo> list = iUserFriendService.queryList(bo); |
|||
ExcelUtil.exportExcel(list, "用户好友", UserFriendVo.class, response); |
|||
} |
|||
|
|||
/** |
|||
* 获取用户好友详细信息 |
|||
* |
|||
* @param id 主键 |
|||
*/ |
|||
@SaCheckPermission("business:userFriend:query") |
|||
@GetMapping("/{id}") |
|||
public R<UserFriendVo> getInfo(@NotNull(message = "主键不能为空") |
|||
@PathVariable Long id) { |
|||
return R.ok(iUserFriendService.queryById(id)); |
|||
} |
|||
|
|||
/** |
|||
* 新增用户好友 |
|||
*/ |
|||
@SaCheckPermission("business:userFriend:add") |
|||
@Log(title = "用户好友", businessType = BusinessType.INSERT) |
|||
@RepeatSubmit() |
|||
@PostMapping() |
|||
public R<Void> add(@Validated(AddGroup.class) @RequestBody UserFriendBo bo) { |
|||
return toAjax(iUserFriendService.insertByBo(bo)); |
|||
} |
|||
|
|||
/** |
|||
* 修改用户好友 |
|||
*/ |
|||
@SaCheckPermission("business:userFriend:edit") |
|||
@Log(title = "用户好友", businessType = BusinessType.UPDATE) |
|||
@RepeatSubmit() |
|||
@PutMapping() |
|||
public R<Void> edit(@Validated(EditGroup.class) @RequestBody UserFriendBo bo) { |
|||
return toAjax(iUserFriendService.updateByBo(bo)); |
|||
} |
|||
|
|||
/** |
|||
* 删除用户好友 |
|||
* |
|||
* @param ids 主键串 |
|||
*/ |
|||
@SaCheckPermission("business:userFriend:remove") |
|||
@Log(title = "用户好友", businessType = BusinessType.DELETE) |
|||
@DeleteMapping("/{ids}") |
|||
public R<Void> remove(@NotEmpty(message = "主键不能为空") |
|||
@PathVariable Long[] ids) { |
|||
return toAjax(iUserFriendService.deleteWithValidByIds(Arrays.asList(ids), true)); |
|||
} |
|||
} |
@ -0,0 +1,106 @@ |
|||
package com.coin.business.controller; |
|||
|
|||
import java.util.List; |
|||
import java.util.Arrays; |
|||
|
|||
import lombok.RequiredArgsConstructor; |
|||
import javax.servlet.http.HttpServletResponse; |
|||
import javax.validation.constraints.*; |
|||
import cn.dev33.satoken.annotation.SaCheckPermission; |
|||
import org.springframework.web.bind.annotation.*; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import com.coin.common.annotation.RepeatSubmit; |
|||
import com.coin.common.annotation.Log; |
|||
import com.coin.common.core.controller.BaseController; |
|||
import com.coin.common.core.domain.PageQuery; |
|||
import com.coin.common.core.domain.R; |
|||
import com.coin.common.core.validate.AddGroup; |
|||
import com.coin.common.core.validate.EditGroup; |
|||
import com.coin.common.enums.BusinessType; |
|||
import com.coin.common.utils.poi.ExcelUtil; |
|||
import com.coin.business.domain.vo.UserInfoVo; |
|||
import com.coin.business.domain.bo.UserInfoBo; |
|||
import com.coin.business.service.IUserInfoService; |
|||
import com.coin.common.core.page.TableDataInfo; |
|||
|
|||
/** |
|||
* 用户信息 |
|||
* |
|||
* @author coin |
|||
* @date 2025-02-21 |
|||
*/ |
|||
@Validated |
|||
@RequiredArgsConstructor |
|||
@RestController |
|||
@RequestMapping("/business/userInfo") |
|||
public class UserInfoController extends BaseController { |
|||
|
|||
private final IUserInfoService iUserInfoService; |
|||
|
|||
/** |
|||
* 查询用户信息列表 |
|||
*/ |
|||
@SaCheckPermission("business:userInfo:list") |
|||
@GetMapping("/list") |
|||
public TableDataInfo<UserInfoVo> list(UserInfoBo bo, PageQuery pageQuery) { |
|||
return iUserInfoService.queryPageList(bo, pageQuery); |
|||
} |
|||
|
|||
/** |
|||
* 导出用户信息列表 |
|||
*/ |
|||
@SaCheckPermission("business:userInfo:export") |
|||
@Log(title = "用户信息", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
public void export(UserInfoBo bo, HttpServletResponse response) { |
|||
List<UserInfoVo> list = iUserInfoService.queryList(bo); |
|||
ExcelUtil.exportExcel(list, "用户信息", UserInfoVo.class, response); |
|||
} |
|||
|
|||
/** |
|||
* 获取用户信息详细信息 |
|||
* |
|||
* @param id 主键 |
|||
*/ |
|||
@SaCheckPermission("business:userInfo:query") |
|||
@GetMapping("/{id}") |
|||
public R<UserInfoVo> getInfo(@NotNull(message = "主键不能为空") |
|||
@PathVariable Long id) { |
|||
return R.ok(iUserInfoService.queryById(id)); |
|||
} |
|||
|
|||
/** |
|||
* 新增用户信息 |
|||
*/ |
|||
@SaCheckPermission("business:userInfo:add") |
|||
@Log(title = "用户信息", businessType = BusinessType.INSERT) |
|||
@RepeatSubmit() |
|||
@PostMapping() |
|||
public R<Void> add(@Validated(AddGroup.class) @RequestBody UserInfoBo bo) { |
|||
return toAjax(iUserInfoService.insertByBo(bo)); |
|||
} |
|||
|
|||
/** |
|||
* 修改用户信息 |
|||
*/ |
|||
@SaCheckPermission("business:userInfo:edit") |
|||
@Log(title = "用户信息", businessType = BusinessType.UPDATE) |
|||
@RepeatSubmit() |
|||
@PutMapping() |
|||
public R<Void> edit(@Validated(EditGroup.class) @RequestBody UserInfoBo bo) { |
|||
return toAjax(iUserInfoService.updateByBo(bo)); |
|||
} |
|||
|
|||
/** |
|||
* 删除用户信息 |
|||
* |
|||
* @param ids 主键串 |
|||
*/ |
|||
@SaCheckPermission("business:userInfo:remove") |
|||
@Log(title = "用户信息", businessType = BusinessType.DELETE) |
|||
@DeleteMapping("/{ids}") |
|||
public R<Void> remove(@NotEmpty(message = "主键不能为空") |
|||
@PathVariable Long[] ids) { |
|||
return toAjax(iUserInfoService.deleteWithValidByIds(Arrays.asList(ids), true)); |
|||
} |
|||
} |
@ -0,0 +1,106 @@ |
|||
package com.coin.business.controller; |
|||
|
|||
import java.util.List; |
|||
import java.util.Arrays; |
|||
|
|||
import lombok.RequiredArgsConstructor; |
|||
import javax.servlet.http.HttpServletResponse; |
|||
import javax.validation.constraints.*; |
|||
import cn.dev33.satoken.annotation.SaCheckPermission; |
|||
import org.springframework.web.bind.annotation.*; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import com.coin.common.annotation.RepeatSubmit; |
|||
import com.coin.common.annotation.Log; |
|||
import com.coin.common.core.controller.BaseController; |
|||
import com.coin.common.core.domain.PageQuery; |
|||
import com.coin.common.core.domain.R; |
|||
import com.coin.common.core.validate.AddGroup; |
|||
import com.coin.common.core.validate.EditGroup; |
|||
import com.coin.common.enums.BusinessType; |
|||
import com.coin.common.utils.poi.ExcelUtil; |
|||
import com.coin.business.domain.vo.UserPasswdVo; |
|||
import com.coin.business.domain.bo.UserPasswdBo; |
|||
import com.coin.business.service.IUserPasswdService; |
|||
import com.coin.common.core.page.TableDataInfo; |
|||
|
|||
/** |
|||
* 用户密码 |
|||
* |
|||
* @author coin |
|||
* @date 2025-02-21 |
|||
*/ |
|||
@Validated |
|||
@RequiredArgsConstructor |
|||
@RestController |
|||
@RequestMapping("/business/userPasswd") |
|||
public class UserPasswdController extends BaseController { |
|||
|
|||
private final IUserPasswdService iUserPasswdService; |
|||
|
|||
/** |
|||
* 查询用户密码列表 |
|||
*/ |
|||
@SaCheckPermission("business:userPasswd:list") |
|||
@GetMapping("/list") |
|||
public TableDataInfo<UserPasswdVo> list(UserPasswdBo bo, PageQuery pageQuery) { |
|||
return iUserPasswdService.queryPageList(bo, pageQuery); |
|||
} |
|||
|
|||
/** |
|||
* 导出用户密码列表 |
|||
*/ |
|||
@SaCheckPermission("business:userPasswd:export") |
|||
@Log(title = "用户密码", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
public void export(UserPasswdBo bo, HttpServletResponse response) { |
|||
List<UserPasswdVo> list = iUserPasswdService.queryList(bo); |
|||
ExcelUtil.exportExcel(list, "用户密码", UserPasswdVo.class, response); |
|||
} |
|||
|
|||
/** |
|||
* 获取用户密码详细信息 |
|||
* |
|||
* @param id 主键 |
|||
*/ |
|||
@SaCheckPermission("business:userPasswd:query") |
|||
@GetMapping("/{id}") |
|||
public R<UserPasswdVo> getInfo(@NotNull(message = "主键不能为空") |
|||
@PathVariable Long id) { |
|||
return R.ok(iUserPasswdService.queryById(id)); |
|||
} |
|||
|
|||
/** |
|||
* 新增用户密码 |
|||
*/ |
|||
@SaCheckPermission("business:userPasswd:add") |
|||
@Log(title = "用户密码", businessType = BusinessType.INSERT) |
|||
@RepeatSubmit() |
|||
@PostMapping() |
|||
public R<Void> add(@Validated(AddGroup.class) @RequestBody UserPasswdBo bo) { |
|||
return toAjax(iUserPasswdService.insertByBo(bo)); |
|||
} |
|||
|
|||
/** |
|||
* 修改用户密码 |
|||
*/ |
|||
@SaCheckPermission("business:userPasswd:edit") |
|||
@Log(title = "用户密码", businessType = BusinessType.UPDATE) |
|||
@RepeatSubmit() |
|||
@PutMapping() |
|||
public R<Void> edit(@Validated(EditGroup.class) @RequestBody UserPasswdBo bo) { |
|||
return toAjax(iUserPasswdService.updateByBo(bo)); |
|||
} |
|||
|
|||
/** |
|||
* 删除用户密码 |
|||
* |
|||
* @param ids 主键串 |
|||
*/ |
|||
@SaCheckPermission("business:userPasswd:remove") |
|||
@Log(title = "用户密码", businessType = BusinessType.DELETE) |
|||
@DeleteMapping("/{ids}") |
|||
public R<Void> remove(@NotEmpty(message = "主键不能为空") |
|||
@PathVariable Long[] ids) { |
|||
return toAjax(iUserPasswdService.deleteWithValidByIds(Arrays.asList(ids), true)); |
|||
} |
|||
} |
@ -0,0 +1,106 @@ |
|||
package com.coin.business.controller; |
|||
|
|||
import java.util.List; |
|||
import java.util.Arrays; |
|||
|
|||
import lombok.RequiredArgsConstructor; |
|||
import javax.servlet.http.HttpServletResponse; |
|||
import javax.validation.constraints.*; |
|||
import cn.dev33.satoken.annotation.SaCheckPermission; |
|||
import org.springframework.web.bind.annotation.*; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import com.coin.common.annotation.RepeatSubmit; |
|||
import com.coin.common.annotation.Log; |
|||
import com.coin.common.core.controller.BaseController; |
|||
import com.coin.common.core.domain.PageQuery; |
|||
import com.coin.common.core.domain.R; |
|||
import com.coin.common.core.validate.AddGroup; |
|||
import com.coin.common.core.validate.EditGroup; |
|||
import com.coin.common.enums.BusinessType; |
|||
import com.coin.common.utils.poi.ExcelUtil; |
|||
import com.coin.business.domain.vo.UserRegisterVo; |
|||
import com.coin.business.domain.bo.UserRegisterBo; |
|||
import com.coin.business.service.IUserRegisterService; |
|||
import com.coin.common.core.page.TableDataInfo; |
|||
|
|||
/** |
|||
* 用户注册 |
|||
* |
|||
* @author coin |
|||
* @date 2025-02-21 |
|||
*/ |
|||
@Validated |
|||
@RequiredArgsConstructor |
|||
@RestController |
|||
@RequestMapping("/business/userRegister") |
|||
public class UserRegisterController extends BaseController { |
|||
|
|||
private final IUserRegisterService iUserRegisterService; |
|||
|
|||
/** |
|||
* 查询用户注册列表 |
|||
*/ |
|||
@SaCheckPermission("business:userRegister:list") |
|||
@GetMapping("/list") |
|||
public TableDataInfo<UserRegisterVo> list(UserRegisterBo bo, PageQuery pageQuery) { |
|||
return iUserRegisterService.queryPageList(bo, pageQuery); |
|||
} |
|||
|
|||
/** |
|||
* 导出用户注册列表 |
|||
*/ |
|||
@SaCheckPermission("business:userRegister:export") |
|||
@Log(title = "用户注册", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
public void export(UserRegisterBo bo, HttpServletResponse response) { |
|||
List<UserRegisterVo> list = iUserRegisterService.queryList(bo); |
|||
ExcelUtil.exportExcel(list, "用户注册", UserRegisterVo.class, response); |
|||
} |
|||
|
|||
/** |
|||
* 获取用户注册详细信息 |
|||
* |
|||
* @param id 主键 |
|||
*/ |
|||
@SaCheckPermission("business:userRegister:query") |
|||
@GetMapping("/{id}") |
|||
public R<UserRegisterVo> getInfo(@NotNull(message = "主键不能为空") |
|||
@PathVariable Long id) { |
|||
return R.ok(iUserRegisterService.queryById(id)); |
|||
} |
|||
|
|||
/** |
|||
* 新增用户注册 |
|||
*/ |
|||
@SaCheckPermission("business:userRegister:add") |
|||
@Log(title = "用户注册", businessType = BusinessType.INSERT) |
|||
@RepeatSubmit() |
|||
@PostMapping() |
|||
public R<Void> add(@Validated(AddGroup.class) @RequestBody UserRegisterBo bo) { |
|||
return toAjax(iUserRegisterService.insertByBo(bo)); |
|||
} |
|||
|
|||
/** |
|||
* 修改用户注册 |
|||
*/ |
|||
@SaCheckPermission("business:userRegister:edit") |
|||
@Log(title = "用户注册", businessType = BusinessType.UPDATE) |
|||
@RepeatSubmit() |
|||
@PutMapping() |
|||
public R<Void> edit(@Validated(EditGroup.class) @RequestBody UserRegisterBo bo) { |
|||
return toAjax(iUserRegisterService.updateByBo(bo)); |
|||
} |
|||
|
|||
/** |
|||
* 删除用户注册 |
|||
* |
|||
* @param ids 主键串 |
|||
*/ |
|||
@SaCheckPermission("business:userRegister:remove") |
|||
@Log(title = "用户注册", businessType = BusinessType.DELETE) |
|||
@DeleteMapping("/{ids}") |
|||
public R<Void> remove(@NotEmpty(message = "主键不能为空") |
|||
@PathVariable Long[] ids) { |
|||
return toAjax(iUserRegisterService.deleteWithValidByIds(Arrays.asList(ids), true)); |
|||
} |
|||
} |
@ -1,10 +1,10 @@ |
|||
# 代码生成 |
|||
gen: |
|||
gen: |
|||
# 作者 |
|||
author: ruoyi |
|||
author: coin |
|||
# 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool |
|||
packageName: com.coin.system |
|||
packageName: com.coin.business |
|||
# 自动去除表前缀,默认是false |
|||
autoRemovePre: false |
|||
autoRemovePre: true |
|||
# 表前缀(生成类名不会包含表前缀,多个用逗号分隔) |
|||
tablePrefix: sys_ |
|||
tablePrefix: t_ |
|||
|
@ -0,0 +1,58 @@ |
|||
package com.coin.business.domain; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.*; |
|||
import com.coin.common.core.domain.BaseEntity; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
import java.math.BigDecimal; |
|||
|
|||
/** |
|||
* 用户账户对象 t_user_account |
|||
* |
|||
* @author coin |
|||
* @date 2025-02-21 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@TableName("t_user_account") |
|||
public class UserAccount extends BaseEntity { |
|||
|
|||
private static final long serialVersionUID=1L; |
|||
|
|||
/** |
|||
* 唯一ID |
|||
*/ |
|||
@TableId(value = "id") |
|||
private Long id; |
|||
/** |
|||
* 用户id |
|||
*/ |
|||
private String userId; |
|||
/** |
|||
* 账户唯一ID |
|||
*/ |
|||
private String accountId; |
|||
/** |
|||
* 账户唯一编号 |
|||
*/ |
|||
private String accountCode; |
|||
/** |
|||
* 账户名称 |
|||
*/ |
|||
private String accountName; |
|||
/** |
|||
* 账户余额 |
|||
*/ |
|||
private BigDecimal accountAmount; |
|||
/** |
|||
* 状态(0正常,1冻结) |
|||
*/ |
|||
private String status; |
|||
/** |
|||
* 删除标志(0代表存在 2代表删除) |
|||
*/ |
|||
@TableLogic |
|||
private String delFlag; |
|||
|
|||
} |
@ -0,0 +1,58 @@ |
|||
package com.coin.business.domain; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.*; |
|||
import com.coin.common.core.domain.BaseEntity; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
import java.math.BigDecimal; |
|||
|
|||
/** |
|||
* 用户银行卡对象 t_user_card |
|||
* |
|||
* @author coin |
|||
* @date 2025-02-21 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@TableName("t_user_card") |
|||
public class UserCard extends BaseEntity { |
|||
|
|||
private static final long serialVersionUID=1L; |
|||
|
|||
/** |
|||
* 唯一ID |
|||
*/ |
|||
@TableId(value = "id") |
|||
private Long id; |
|||
/** |
|||
* 用户ID |
|||
*/ |
|||
private String userId; |
|||
/** |
|||
* 银行卡号 |
|||
*/ |
|||
private String cardNum; |
|||
/** |
|||
* 银行卡余额 |
|||
*/ |
|||
private BigDecimal cardAmount; |
|||
/** |
|||
* 银行名称 |
|||
*/ |
|||
private String bankName; |
|||
/** |
|||
* 具体分行 |
|||
*/ |
|||
private String deptName; |
|||
/** |
|||
* 卡状态(0正常 1停用) |
|||
*/ |
|||
private String status; |
|||
/** |
|||
* 删除标志(0代表存在 2代表删除) |
|||
*/ |
|||
@TableLogic |
|||
private String delFlag; |
|||
|
|||
} |
@ -0,0 +1,45 @@ |
|||
package com.coin.business.domain; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.*; |
|||
import com.coin.common.core.domain.BaseEntity; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
|
|||
/** |
|||
* 用户好友对象 t_user_friend |
|||
* |
|||
* @author coin |
|||
* @date 2025-02-21 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@TableName("t_user_friend") |
|||
public class UserFriend extends BaseEntity { |
|||
|
|||
private static final long serialVersionUID=1L; |
|||
|
|||
/** |
|||
* 唯一ID |
|||
*/ |
|||
@TableId(value = "id") |
|||
private Long id; |
|||
/** |
|||
* 用户id |
|||
*/ |
|||
private String userId; |
|||
/** |
|||
* 好友id |
|||
*/ |
|||
private String friendId; |
|||
/** |
|||
* 状态(0正常,1拉黑) |
|||
*/ |
|||
private String status; |
|||
/** |
|||
* 删除标志(0代表存在 2代表删除) |
|||
*/ |
|||
@TableLogic |
|||
private String delFlag; |
|||
|
|||
} |
@ -0,0 +1,69 @@ |
|||
package com.coin.business.domain; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.*; |
|||
import com.coin.common.core.domain.BaseEntity; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
|
|||
/** |
|||
* 用户信息对象 t_user_info |
|||
* |
|||
* @author coin |
|||
* @date 2025-02-21 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@TableName("t_user_info") |
|||
public class UserInfo extends BaseEntity { |
|||
|
|||
private static final long serialVersionUID=1L; |
|||
|
|||
/** |
|||
* 唯一ID |
|||
*/ |
|||
@TableId(value = "id") |
|||
private Long id; |
|||
/** |
|||
* 用户ID |
|||
*/ |
|||
private String userId; |
|||
/** |
|||
* 用户唯一编码 |
|||
*/ |
|||
private String userCode; |
|||
/** |
|||
* 姓名 |
|||
*/ |
|||
private String name; |
|||
/** |
|||
* 性别 |
|||
*/ |
|||
private String gender; |
|||
/** |
|||
* 唯一ID(身份证) |
|||
*/ |
|||
private String idCard; |
|||
/** |
|||
* 手机号 |
|||
*/ |
|||
private String phone; |
|||
/** |
|||
* 年龄 |
|||
*/ |
|||
private String age; |
|||
/** |
|||
* 地址 |
|||
*/ |
|||
private String addr; |
|||
/** |
|||
* 用户状态(0正常 1停用) |
|||
*/ |
|||
private String status; |
|||
/** |
|||
* 删除标志(0代表存在 2代表删除) |
|||
*/ |
|||
@TableLogic |
|||
private String delFlag; |
|||
|
|||
} |
@ -0,0 +1,53 @@ |
|||
package com.coin.business.domain; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.*; |
|||
import com.coin.common.core.domain.BaseEntity; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
|
|||
/** |
|||
* 用户密码对象 t_user_passwd |
|||
* |
|||
* @author coin |
|||
* @date 2025-02-21 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@TableName("t_user_passwd") |
|||
public class UserPasswd extends BaseEntity { |
|||
|
|||
private static final long serialVersionUID=1L; |
|||
|
|||
/** |
|||
* 唯一ID |
|||
*/ |
|||
@TableId(value = "id") |
|||
private Long id; |
|||
/** |
|||
* 用户id |
|||
*/ |
|||
private String userId; |
|||
/** |
|||
* 支付密码(数字组合) |
|||
*/ |
|||
private String payPasswd; |
|||
/** |
|||
* 设备锁(九宫) |
|||
*/ |
|||
private String phoneLock; |
|||
/** |
|||
* 登录密码(数字组合) |
|||
*/ |
|||
private String loginPasswd; |
|||
/** |
|||
* 支付状态(0正常,1仅收款,2冻结) |
|||
*/ |
|||
private String payStatus; |
|||
/** |
|||
* 删除标志(0代表存在 2代表删除) |
|||
*/ |
|||
@TableLogic |
|||
private String delFlag; |
|||
|
|||
} |
@ -0,0 +1,57 @@ |
|||
package com.coin.business.domain; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.*; |
|||
import com.coin.common.core.domain.BaseEntity; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
|
|||
/** |
|||
* 用户注册对象 t_user_register |
|||
* |
|||
* @author coin |
|||
* @date 2025-02-21 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@TableName("t_user_register") |
|||
public class UserRegister extends BaseEntity { |
|||
|
|||
private static final long serialVersionUID=1L; |
|||
|
|||
/** |
|||
* 唯一ID |
|||
*/ |
|||
@TableId(value = "id") |
|||
private Long id; |
|||
/** |
|||
* 用户id |
|||
*/ |
|||
private String userId; |
|||
/** |
|||
* 名字 |
|||
*/ |
|||
private String name; |
|||
/** |
|||
* 电话 |
|||
*/ |
|||
private String phone; |
|||
/** |
|||
* 密码 |
|||
*/ |
|||
private String passwd; |
|||
/** |
|||
* 验证码 |
|||
*/ |
|||
private String verifyCode; |
|||
/** |
|||
* 状态(0发起,1拒绝,2通过) |
|||
*/ |
|||
private String status; |
|||
/** |
|||
* 删除标志(0代表存在 2代表删除) |
|||
*/ |
|||
@TableLogic |
|||
private String delFlag; |
|||
|
|||
} |
@ -0,0 +1,57 @@ |
|||
package com.coin.business.domain.bo; |
|||
|
|||
import com.coin.common.core.domain.BaseEntity; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
import javax.validation.constraints.*; |
|||
|
|||
import java.math.BigDecimal; |
|||
|
|||
/** |
|||
* 用户账户业务对象 t_user_account |
|||
* |
|||
* @author coin |
|||
* @date 2025-02-21 |
|||
*/ |
|||
|
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
public class UserAccountBo extends BaseEntity { |
|||
|
|||
/** |
|||
* 唯一ID |
|||
*/ |
|||
private Long id; |
|||
|
|||
/** |
|||
* 用户id |
|||
*/ |
|||
private String userId; |
|||
|
|||
/** |
|||
* 账户唯一ID |
|||
*/ |
|||
private String accountId; |
|||
|
|||
/** |
|||
* 账户唯一编号 |
|||
*/ |
|||
private String accountCode; |
|||
|
|||
/** |
|||
* 账户名称 |
|||
*/ |
|||
private String accountName; |
|||
|
|||
/** |
|||
* 账户余额 |
|||
*/ |
|||
private BigDecimal accountAmount; |
|||
|
|||
/** |
|||
* 状态(0正常,1冻结) |
|||
*/ |
|||
private String status; |
|||
|
|||
|
|||
} |
@ -0,0 +1,61 @@ |
|||
package com.coin.business.domain.bo; |
|||
|
|||
import com.coin.common.core.domain.BaseEntity; |
|||
import com.coin.common.core.validate.AddGroup; |
|||
import com.coin.common.core.validate.EditGroup; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
import javax.validation.constraints.*; |
|||
|
|||
import java.math.BigDecimal; |
|||
|
|||
/** |
|||
* 用户银行卡业务对象 t_user_card |
|||
* |
|||
* @author coin |
|||
* @date 2025-02-21 |
|||
*/ |
|||
|
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
public class UserCardBo extends BaseEntity { |
|||
|
|||
/** |
|||
* 唯一ID |
|||
*/ |
|||
private Long id; |
|||
|
|||
/** |
|||
* 用户ID |
|||
*/ |
|||
@NotBlank(message = "用户ID不能为空", groups = { AddGroup.class, EditGroup.class }) |
|||
private String userId; |
|||
|
|||
/** |
|||
* 银行卡号 |
|||
*/ |
|||
@NotBlank(message = "银行卡号不能为空", groups = { AddGroup.class, EditGroup.class }) |
|||
private String cardNum; |
|||
|
|||
/** |
|||
* 银行卡余额 |
|||
*/ |
|||
private BigDecimal cardAmount; |
|||
|
|||
/** |
|||
* 银行名称 |
|||
*/ |
|||
private String bankName; |
|||
|
|||
/** |
|||
* 具体分行 |
|||
*/ |
|||
private String deptName; |
|||
|
|||
/** |
|||
* 卡状态(0正常 1停用) |
|||
*/ |
|||
private String status; |
|||
|
|||
|
|||
} |
@ -0,0 +1,46 @@ |
|||
package com.coin.business.domain.bo; |
|||
|
|||
import com.coin.common.core.domain.BaseEntity; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
import javax.validation.constraints.*; |
|||
|
|||
|
|||
/** |
|||
* 用户好友业务对象 t_user_friend |
|||
* |
|||
* @author coin |
|||
* @date 2025-02-21 |
|||
*/ |
|||
|
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
public class UserFriendBo extends BaseEntity { |
|||
|
|||
/** |
|||
* 唯一ID |
|||
*/ |
|||
private Long id; |
|||
|
|||
/** |
|||
* 用户id |
|||
*/ |
|||
private String userId; |
|||
|
|||
/** |
|||
* 好友id |
|||
*/ |
|||
private String friendId; |
|||
|
|||
/** |
|||
* 状态(0正常,1拉黑) |
|||
*/ |
|||
private String status; |
|||
|
|||
/** |
|||
* 删除标志(0代表存在 2代表删除) |
|||
*/ |
|||
private String delFlag; |
|||
|
|||
|
|||
} |
@ -0,0 +1,76 @@ |
|||
package com.coin.business.domain.bo; |
|||
|
|||
import com.coin.common.core.domain.BaseEntity; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
import javax.validation.constraints.*; |
|||
|
|||
|
|||
/** |
|||
* 用户信息业务对象 t_user_info |
|||
* |
|||
* @author coin |
|||
* @date 2025-02-21 |
|||
*/ |
|||
|
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
public class UserInfoBo extends BaseEntity { |
|||
|
|||
/** |
|||
* 唯一ID |
|||
*/ |
|||
private Long id; |
|||
|
|||
/** |
|||
* 用户ID |
|||
*/ |
|||
private String userId; |
|||
|
|||
/** |
|||
* 用户唯一编码 |
|||
*/ |
|||
private String userCode; |
|||
|
|||
/** |
|||
* 姓名 |
|||
*/ |
|||
private String name; |
|||
|
|||
/** |
|||
* 性别 |
|||
*/ |
|||
private String gender; |
|||
|
|||
/** |
|||
* 唯一ID(身份证) |
|||
*/ |
|||
private String idCard; |
|||
|
|||
/** |
|||
* 手机号 |
|||
*/ |
|||
private String phone; |
|||
|
|||
/** |
|||
* 年龄 |
|||
*/ |
|||
private String age; |
|||
|
|||
/** |
|||
* 地址 |
|||
*/ |
|||
private String addr; |
|||
|
|||
/** |
|||
* 用户状态(0正常 1停用) |
|||
*/ |
|||
private String status; |
|||
|
|||
/** |
|||
* 删除标志(0代表存在 2代表删除) |
|||
*/ |
|||
private String delFlag; |
|||
|
|||
|
|||
} |
@ -0,0 +1,56 @@ |
|||
package com.coin.business.domain.bo; |
|||
|
|||
import com.coin.common.core.domain.BaseEntity; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
import javax.validation.constraints.*; |
|||
|
|||
|
|||
/** |
|||
* 用户密码业务对象 t_user_passwd |
|||
* |
|||
* @author coin |
|||
* @date 2025-02-21 |
|||
*/ |
|||
|
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
public class UserPasswdBo extends BaseEntity { |
|||
|
|||
/** |
|||
* 唯一ID |
|||
*/ |
|||
private Long id; |
|||
|
|||
/** |
|||
* 用户id |
|||
*/ |
|||
private String userId; |
|||
|
|||
/** |
|||
* 支付密码(数字组合) |
|||
*/ |
|||
private String payPasswd; |
|||
|
|||
/** |
|||
* 设备锁(九宫) |
|||
*/ |
|||
private String phoneLock; |
|||
|
|||
/** |
|||
* 登录密码(数字组合) |
|||
*/ |
|||
private String loginPasswd; |
|||
|
|||
/** |
|||
* 支付状态(0正常,1仅收款,2冻结) |
|||
*/ |
|||
private String payStatus; |
|||
|
|||
/** |
|||
* 删除标志(0代表存在 2代表删除) |
|||
*/ |
|||
private String delFlag; |
|||
|
|||
|
|||
} |
@ -0,0 +1,59 @@ |
|||
package com.coin.business.domain.bo; |
|||
|
|||
import com.coin.common.core.domain.BaseEntity; |
|||
import com.coin.common.core.validate.AddGroup; |
|||
import com.coin.common.core.validate.EditGroup; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
import javax.validation.constraints.*; |
|||
|
|||
|
|||
/** |
|||
* 用户注册业务对象 t_user_register |
|||
* |
|||
* @author coin |
|||
* @date 2025-02-21 |
|||
*/ |
|||
|
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
public class UserRegisterBo extends BaseEntity { |
|||
|
|||
/** |
|||
* 唯一ID |
|||
*/ |
|||
private Long id; |
|||
|
|||
/** |
|||
* 用户id |
|||
*/ |
|||
private String userId; |
|||
|
|||
/** |
|||
* 名字 |
|||
*/ |
|||
@NotBlank(message = "名字不能为空", groups = { AddGroup.class, EditGroup.class }) |
|||
private String name; |
|||
|
|||
/** |
|||
* 电话 |
|||
*/ |
|||
private String phone; |
|||
|
|||
/** |
|||
* 密码 |
|||
*/ |
|||
private String passwd; |
|||
|
|||
/** |
|||
* 验证码 |
|||
*/ |
|||
private String verifyCode; |
|||
|
|||
/** |
|||
* 状态(0发起,1拒绝,2通过) |
|||
*/ |
|||
private String status; |
|||
|
|||
|
|||
} |
@ -0,0 +1,88 @@ |
|||
package com.coin.business.domain.vo; |
|||
|
|||
import java.math.BigDecimal; |
|||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; |
|||
import com.alibaba.excel.annotation.ExcelProperty; |
|||
import com.coin.common.annotation.ExcelDictFormat; |
|||
import com.coin.common.convert.ExcelDictConvert; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 用户账户视图对象 t_user_account |
|||
* |
|||
* @author coin |
|||
* @date 2025-02-21 |
|||
*/ |
|||
@Data |
|||
@ExcelIgnoreUnannotated |
|||
public class UserAccountVo implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 唯一ID |
|||
*/ |
|||
@ExcelProperty(value = "唯一ID") |
|||
private Long id; |
|||
|
|||
/** |
|||
* 用户id |
|||
*/ |
|||
@ExcelProperty(value = "用户id") |
|||
private String userId; |
|||
|
|||
/** |
|||
* 账户唯一ID |
|||
*/ |
|||
@ExcelProperty(value = "账户唯一ID") |
|||
private String accountId; |
|||
|
|||
/** |
|||
* 账户唯一编号 |
|||
*/ |
|||
@ExcelProperty(value = "账户唯一编号") |
|||
private String accountCode; |
|||
|
|||
/** |
|||
* 账户名称 |
|||
*/ |
|||
@ExcelProperty(value = "账户名称") |
|||
private String accountName; |
|||
|
|||
/** |
|||
* 账户余额 |
|||
*/ |
|||
@ExcelProperty(value = "账户余额") |
|||
private BigDecimal accountAmount; |
|||
|
|||
/** |
|||
* 状态(0正常,1冻结) |
|||
*/ |
|||
@ExcelProperty(value = "状态", converter = ExcelDictConvert.class) |
|||
@ExcelDictFormat(readConverterExp = "0=正常,1冻结") |
|||
private String status; |
|||
|
|||
/** |
|||
* 删除标志(0代表存在 2代表删除) |
|||
*/ |
|||
@ExcelProperty(value = "删除标志", converter = ExcelDictConvert.class) |
|||
@ExcelDictFormat(readConverterExp = "0=代表存在,2=代表删除") |
|||
private String delFlag; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
@ExcelProperty(value = "创建时间") |
|||
private Date createTime; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
@ExcelProperty(value = "更新时间") |
|||
private Date updateTime; |
|||
|
|||
|
|||
} |
@ -0,0 +1,79 @@ |
|||
package com.coin.business.domain.vo; |
|||
|
|||
import java.math.BigDecimal; |
|||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; |
|||
import com.alibaba.excel.annotation.ExcelProperty; |
|||
import com.coin.common.annotation.ExcelDictFormat; |
|||
import com.coin.common.convert.ExcelDictConvert; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 用户银行卡视图对象 t_user_card |
|||
* |
|||
* @author coin |
|||
* @date 2025-02-21 |
|||
*/ |
|||
@Data |
|||
@ExcelIgnoreUnannotated |
|||
public class UserCardVo implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 唯一ID |
|||
*/ |
|||
@ExcelProperty(value = "唯一ID") |
|||
private Long id; |
|||
|
|||
/** |
|||
* 用户ID |
|||
*/ |
|||
@ExcelProperty(value = "用户ID") |
|||
private String userId; |
|||
|
|||
/** |
|||
* 银行卡号 |
|||
*/ |
|||
@ExcelProperty(value = "银行卡号") |
|||
private String cardNum; |
|||
|
|||
/** |
|||
* 银行卡余额 |
|||
*/ |
|||
@ExcelProperty(value = "银行卡余额") |
|||
private BigDecimal cardAmount; |
|||
|
|||
/** |
|||
* 银行名称 |
|||
*/ |
|||
@ExcelProperty(value = "银行名称") |
|||
private String bankName; |
|||
|
|||
/** |
|||
* 具体分行 |
|||
*/ |
|||
@ExcelProperty(value = "具体分行") |
|||
private String deptName; |
|||
|
|||
/** |
|||
* 卡状态(0正常 1停用) |
|||
*/ |
|||
@ExcelProperty(value = "卡状态", converter = ExcelDictConvert.class) |
|||
@ExcelDictFormat(readConverterExp = "0=正常,1=停用") |
|||
private String status; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
@ExcelProperty(value = "创建时间") |
|||
private Date createTime; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
@ExcelProperty(value = "更新时间") |
|||
private Date updateTime; |
|||
} |
@ -0,0 +1,61 @@ |
|||
package com.coin.business.domain.vo; |
|||
|
|||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; |
|||
import com.alibaba.excel.annotation.ExcelProperty; |
|||
import com.coin.common.annotation.ExcelDictFormat; |
|||
import com.coin.common.convert.ExcelDictConvert; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 用户好友视图对象 t_user_friend |
|||
* |
|||
* @author coin |
|||
* @date 2025-02-21 |
|||
*/ |
|||
@Data |
|||
@ExcelIgnoreUnannotated |
|||
public class UserFriendVo implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 唯一ID |
|||
*/ |
|||
@ExcelProperty(value = "唯一ID") |
|||
private Long id; |
|||
|
|||
/** |
|||
* 用户id |
|||
*/ |
|||
@ExcelProperty(value = "用户id") |
|||
private String userId; |
|||
|
|||
/** |
|||
* 好友id |
|||
*/ |
|||
@ExcelProperty(value = "好友id") |
|||
private String friendId; |
|||
|
|||
/** |
|||
* 状态(0正常,1拉黑) |
|||
*/ |
|||
@ExcelProperty(value = "状态", converter = ExcelDictConvert.class) |
|||
@ExcelDictFormat(readConverterExp = "0=正常,1拉黑") |
|||
private String status; |
|||
|
|||
/** |
|||
* 删除标志(0代表存在 2代表删除) |
|||
*/ |
|||
@ExcelProperty(value = "删除标志", converter = ExcelDictConvert.class) |
|||
@ExcelDictFormat(readConverterExp = "0=代表存在,2=代表删除") |
|||
private String delFlag; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
@ExcelProperty(value = "创建时间") |
|||
private Date createTime; |
|||
} |
@ -0,0 +1,104 @@ |
|||
package com.coin.business.domain.vo; |
|||
|
|||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; |
|||
import com.alibaba.excel.annotation.ExcelProperty; |
|||
import com.coin.common.annotation.ExcelDictFormat; |
|||
import com.coin.common.convert.ExcelDictConvert; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 用户信息视图对象 t_user_info |
|||
* |
|||
* @author coin |
|||
* @date 2025-02-21 |
|||
*/ |
|||
@Data |
|||
@ExcelIgnoreUnannotated |
|||
public class UserInfoVo implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 唯一ID |
|||
*/ |
|||
@ExcelProperty(value = "唯一ID") |
|||
private Long id; |
|||
|
|||
/** |
|||
* 用户ID |
|||
*/ |
|||
@ExcelProperty(value = "用户ID") |
|||
private String userId; |
|||
|
|||
/** |
|||
* 用户唯一编码 |
|||
*/ |
|||
@ExcelProperty(value = "用户唯一编码") |
|||
private String userCode; |
|||
|
|||
/** |
|||
* 姓名 |
|||
*/ |
|||
@ExcelProperty(value = "姓名") |
|||
private String name; |
|||
|
|||
/** |
|||
* 性别 |
|||
*/ |
|||
@ExcelProperty(value = "性别") |
|||
private String gender; |
|||
|
|||
/** |
|||
* 唯一ID(身份证) |
|||
*/ |
|||
@ExcelProperty(value = "唯一ID", converter = ExcelDictConvert.class) |
|||
@ExcelDictFormat(readConverterExp = "身=份证") |
|||
private String idCard; |
|||
|
|||
/** |
|||
* 手机号 |
|||
*/ |
|||
@ExcelProperty(value = "手机号") |
|||
private String phone; |
|||
|
|||
/** |
|||
* 年龄 |
|||
*/ |
|||
@ExcelProperty(value = "年龄") |
|||
private String age; |
|||
|
|||
/** |
|||
* 地址 |
|||
*/ |
|||
@ExcelProperty(value = "地址") |
|||
private String addr; |
|||
|
|||
/** |
|||
* 用户状态(0正常 1停用) |
|||
*/ |
|||
@ExcelProperty(value = "用户状态", converter = ExcelDictConvert.class) |
|||
@ExcelDictFormat(readConverterExp = "0=正常,1=停用") |
|||
private String status; |
|||
|
|||
/** |
|||
* 删除标志(0代表存在 2代表删除) |
|||
*/ |
|||
@ExcelProperty(value = "删除标志", converter = ExcelDictConvert.class) |
|||
@ExcelDictFormat(readConverterExp = "0=代表存在,2=代表删除") |
|||
private String delFlag; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
@ExcelProperty(value = "创建时间") |
|||
private Date createTime; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
@ExcelProperty(value = "更新时间") |
|||
private Date updateTime; |
|||
} |
@ -0,0 +1,79 @@ |
|||
package com.coin.business.domain.vo; |
|||
|
|||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; |
|||
import com.alibaba.excel.annotation.ExcelProperty; |
|||
import com.coin.common.annotation.ExcelDictFormat; |
|||
import com.coin.common.convert.ExcelDictConvert; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 用户密码视图对象 t_user_passwd |
|||
* |
|||
* @author coin |
|||
* @date 2025-02-21 |
|||
*/ |
|||
@Data |
|||
@ExcelIgnoreUnannotated |
|||
public class UserPasswdVo implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 唯一ID |
|||
*/ |
|||
@ExcelProperty(value = "唯一ID") |
|||
private Long id; |
|||
|
|||
/** |
|||
* 用户id |
|||
*/ |
|||
@ExcelProperty(value = "用户id") |
|||
private String userId; |
|||
|
|||
/** |
|||
* 支付密码(数字组合) |
|||
*/ |
|||
@ExcelProperty(value = "支付密码(数字组合)") |
|||
private String payPasswd; |
|||
|
|||
/** |
|||
* 设备锁(九宫) |
|||
*/ |
|||
@ExcelProperty(value = "设备锁(九宫)") |
|||
private String phoneLock; |
|||
|
|||
/** |
|||
* 登录密码(数字组合) |
|||
*/ |
|||
@ExcelProperty(value = "登录密码(数字组合)") |
|||
private String loginPasswd; |
|||
|
|||
/** |
|||
* 支付状态(0正常,1仅收款,2冻结) |
|||
*/ |
|||
@ExcelProperty(value = "支付状态", converter = ExcelDictConvert.class) |
|||
@ExcelDictFormat(readConverterExp = "0=正常,1仅收款,2冻结") |
|||
private String payStatus; |
|||
|
|||
/** |
|||
* 删除标志(0代表存在 2代表删除) |
|||
*/ |
|||
@ExcelProperty(value = "删除标志", converter = ExcelDictConvert.class) |
|||
@ExcelDictFormat(readConverterExp = "0=代表存在,2=代表删除") |
|||
private String delFlag; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
@ExcelProperty(value = "创建时间") |
|||
private Date createTime; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
@ExcelProperty(value = "更新时间") |
|||
private Date updateTime; |
|||
} |
@ -0,0 +1,78 @@ |
|||
package com.coin.business.domain.vo; |
|||
|
|||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; |
|||
import com.alibaba.excel.annotation.ExcelProperty; |
|||
import com.coin.common.annotation.ExcelDictFormat; |
|||
import com.coin.common.convert.ExcelDictConvert; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 用户注册视图对象 t_user_register |
|||
* |
|||
* @author coin |
|||
* @date 2025-02-21 |
|||
*/ |
|||
@Data |
|||
@ExcelIgnoreUnannotated |
|||
public class UserRegisterVo implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 唯一ID |
|||
*/ |
|||
@ExcelProperty(value = "唯一ID") |
|||
private Long id; |
|||
|
|||
/** |
|||
* 用户id |
|||
*/ |
|||
@ExcelProperty(value = "用户id") |
|||
private String userId; |
|||
|
|||
/** |
|||
* 名字 |
|||
*/ |
|||
@ExcelProperty(value = "名字") |
|||
private String name; |
|||
|
|||
/** |
|||
* 电话 |
|||
*/ |
|||
@ExcelProperty(value = "电话") |
|||
private String phone; |
|||
|
|||
/** |
|||
* 密码 |
|||
*/ |
|||
@ExcelProperty(value = "密码") |
|||
private String passwd; |
|||
|
|||
/** |
|||
* 验证码 |
|||
*/ |
|||
@ExcelProperty(value = "验证码") |
|||
private String verifyCode; |
|||
|
|||
/** |
|||
* 状态(0发起,1拒绝,2通过) |
|||
*/ |
|||
@ExcelProperty(value = "状态", converter = ExcelDictConvert.class) |
|||
@ExcelDictFormat(readConverterExp = "0=发起,1拒绝,2通过") |
|||
private String status; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
@ExcelProperty(value = "创建时间") |
|||
private Date createTime; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
@ExcelProperty(value = "更新时间") |
|||
private Date updateTime; |
|||
} |
@ -0,0 +1,15 @@ |
|||
package com.coin.business.mapper; |
|||
|
|||
import com.coin.business.domain.UserAccount; |
|||
import com.coin.business.domain.vo.UserAccountVo; |
|||
import com.coin.common.core.mapper.BaseMapperPlus; |
|||
|
|||
/** |
|||
* 用户账户Mapper接口 |
|||
* |
|||
* @author coin |
|||
* @date 2025-02-21 |
|||
*/ |
|||
public interface UserAccountMapper extends BaseMapperPlus<UserAccountMapper, UserAccount, UserAccountVo> { |
|||
|
|||
} |
@ -0,0 +1,15 @@ |
|||
package com.coin.business.mapper; |
|||
|
|||
import com.coin.business.domain.UserCard; |
|||
import com.coin.business.domain.vo.UserCardVo; |
|||
import com.coin.common.core.mapper.BaseMapperPlus; |
|||
|
|||
/** |
|||
* 用户银行卡Mapper接口 |
|||
* |
|||
* @author coin |
|||
* @date 2025-02-21 |
|||
*/ |
|||
public interface UserCardMapper extends BaseMapperPlus<UserCardMapper, UserCard, UserCardVo> { |
|||
|
|||
} |
@ -0,0 +1,15 @@ |
|||
package com.coin.business.mapper; |
|||
|
|||
import com.coin.business.domain.UserFriend; |
|||
import com.coin.business.domain.vo.UserFriendVo; |
|||
import com.coin.common.core.mapper.BaseMapperPlus; |
|||
|
|||
/** |
|||
* 用户好友Mapper接口 |
|||
* |
|||
* @author coin |
|||
* @date 2025-02-21 |
|||
*/ |
|||
public interface UserFriendMapper extends BaseMapperPlus<UserFriendMapper, UserFriend, UserFriendVo> { |
|||
|
|||
} |
@ -0,0 +1,15 @@ |
|||
package com.coin.business.mapper; |
|||
|
|||
import com.coin.business.domain.UserInfo; |
|||
import com.coin.business.domain.vo.UserInfoVo; |
|||
import com.coin.common.core.mapper.BaseMapperPlus; |
|||
|
|||
/** |
|||
* 用户信息Mapper接口 |
|||
* |
|||
* @author coin |
|||
* @date 2025-02-21 |
|||
*/ |
|||
public interface UserInfoMapper extends BaseMapperPlus<UserInfoMapper, UserInfo, UserInfoVo> { |
|||
|
|||
} |
@ -0,0 +1,15 @@ |
|||
package com.coin.business.mapper; |
|||
|
|||
import com.coin.business.domain.UserPasswd; |
|||
import com.coin.business.domain.vo.UserPasswdVo; |
|||
import com.coin.common.core.mapper.BaseMapperPlus; |
|||
|
|||
/** |
|||
* 用户密码Mapper接口 |
|||
* |
|||
* @author coin |
|||
* @date 2025-02-21 |
|||
*/ |
|||
public interface UserPasswdMapper extends BaseMapperPlus<UserPasswdMapper, UserPasswd, UserPasswdVo> { |
|||
|
|||
} |
@ -0,0 +1,15 @@ |
|||
package com.coin.business.mapper; |
|||
|
|||
import com.coin.business.domain.UserRegister; |
|||
import com.coin.business.domain.vo.UserRegisterVo; |
|||
import com.coin.common.core.mapper.BaseMapperPlus; |
|||
|
|||
/** |
|||
* 用户注册Mapper接口 |
|||
* |
|||
* @author coin |
|||
* @date 2025-02-21 |
|||
*/ |
|||
public interface UserRegisterMapper extends BaseMapperPlus<UserRegisterMapper, UserRegister, UserRegisterVo> { |
|||
|
|||
} |
@ -0,0 +1,49 @@ |
|||
package com.coin.business.service; |
|||
|
|||
import com.coin.business.domain.UserAccount; |
|||
import com.coin.business.domain.vo.UserAccountVo; |
|||
import com.coin.business.domain.bo.UserAccountBo; |
|||
import com.coin.common.core.page.TableDataInfo; |
|||
import com.coin.common.core.domain.PageQuery; |
|||
|
|||
import java.util.Collection; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 用户账户Service接口 |
|||
* |
|||
* @author coin |
|||
* @date 2025-02-21 |
|||
*/ |
|||
public interface IUserAccountService { |
|||
|
|||
/** |
|||
* 查询用户账户 |
|||
*/ |
|||
UserAccountVo queryById(Long id); |
|||
|
|||
/** |
|||
* 查询用户账户列表 |
|||
*/ |
|||
TableDataInfo<UserAccountVo> queryPageList(UserAccountBo bo, PageQuery pageQuery); |
|||
|
|||
/** |
|||
* 查询用户账户列表 |
|||
*/ |
|||
List<UserAccountVo> queryList(UserAccountBo bo); |
|||
|
|||
/** |
|||
* 新增用户账户 |
|||
*/ |
|||
Boolean insertByBo(UserAccountBo bo); |
|||
|
|||
/** |
|||
* 修改用户账户 |
|||
*/ |
|||
Boolean updateByBo(UserAccountBo bo); |
|||
|
|||
/** |
|||
* 校验并批量删除用户账户信息 |
|||
*/ |
|||
Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid); |
|||
} |
@ -0,0 +1,49 @@ |
|||
package com.coin.business.service; |
|||
|
|||
import com.coin.business.domain.UserCard; |
|||
import com.coin.business.domain.vo.UserCardVo; |
|||
import com.coin.business.domain.bo.UserCardBo; |
|||
import com.coin.common.core.page.TableDataInfo; |
|||
import com.coin.common.core.domain.PageQuery; |
|||
|
|||
import java.util.Collection; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 用户银行卡Service接口 |
|||
* |
|||
* @author coin |
|||
* @date 2025-02-21 |
|||
*/ |
|||
public interface IUserCardService { |
|||
|
|||
/** |
|||
* 查询用户银行卡 |
|||
*/ |
|||
UserCardVo queryById(Long id); |
|||
|
|||
/** |
|||
* 查询用户银行卡列表 |
|||
*/ |
|||
TableDataInfo<UserCardVo> queryPageList(UserCardBo bo, PageQuery pageQuery); |
|||
|
|||
/** |
|||
* 查询用户银行卡列表 |
|||
*/ |
|||
List<UserCardVo> queryList(UserCardBo bo); |
|||
|
|||
/** |
|||
* 新增用户银行卡 |
|||
*/ |
|||
Boolean insertByBo(UserCardBo bo); |
|||
|
|||
/** |
|||
* 修改用户银行卡 |
|||
*/ |
|||
Boolean updateByBo(UserCardBo bo); |
|||
|
|||
/** |
|||
* 校验并批量删除用户银行卡信息 |
|||
*/ |
|||
Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid); |
|||
} |
@ -0,0 +1,49 @@ |
|||
package com.coin.business.service; |
|||
|
|||
import com.coin.business.domain.UserFriend; |
|||
import com.coin.business.domain.vo.UserFriendVo; |
|||
import com.coin.business.domain.bo.UserFriendBo; |
|||
import com.coin.common.core.page.TableDataInfo; |
|||
import com.coin.common.core.domain.PageQuery; |
|||
|
|||
import java.util.Collection; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 用户好友Service接口 |
|||
* |
|||
* @author coin |
|||
* @date 2025-02-21 |
|||
*/ |
|||
public interface IUserFriendService { |
|||
|
|||
/** |
|||
* 查询用户好友 |
|||
*/ |
|||
UserFriendVo queryById(Long id); |
|||
|
|||
/** |
|||
* 查询用户好友列表 |
|||
*/ |
|||
TableDataInfo<UserFriendVo> queryPageList(UserFriendBo bo, PageQuery pageQuery); |
|||
|
|||
/** |
|||
* 查询用户好友列表 |
|||
*/ |
|||
List<UserFriendVo> queryList(UserFriendBo bo); |
|||
|
|||
/** |
|||
* 新增用户好友 |
|||
*/ |
|||
Boolean insertByBo(UserFriendBo bo); |
|||
|
|||
/** |
|||
* 修改用户好友 |
|||
*/ |
|||
Boolean updateByBo(UserFriendBo bo); |
|||
|
|||
/** |
|||
* 校验并批量删除用户好友信息 |
|||
*/ |
|||
Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid); |
|||
} |
@ -0,0 +1,49 @@ |
|||
package com.coin.business.service; |
|||
|
|||
import com.coin.business.domain.UserInfo; |
|||
import com.coin.business.domain.vo.UserInfoVo; |
|||
import com.coin.business.domain.bo.UserInfoBo; |
|||
import com.coin.common.core.page.TableDataInfo; |
|||
import com.coin.common.core.domain.PageQuery; |
|||
|
|||
import java.util.Collection; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 用户信息Service接口 |
|||
* |
|||
* @author coin |
|||
* @date 2025-02-21 |
|||
*/ |
|||
public interface IUserInfoService { |
|||
|
|||
/** |
|||
* 查询用户信息 |
|||
*/ |
|||
UserInfoVo queryById(Long id); |
|||
|
|||
/** |
|||
* 查询用户信息列表 |
|||
*/ |
|||
TableDataInfo<UserInfoVo> queryPageList(UserInfoBo bo, PageQuery pageQuery); |
|||
|
|||
/** |
|||
* 查询用户信息列表 |
|||
*/ |
|||
List<UserInfoVo> queryList(UserInfoBo bo); |
|||
|
|||
/** |
|||
* 新增用户信息 |
|||
*/ |
|||
Boolean insertByBo(UserInfoBo bo); |
|||
|
|||
/** |
|||
* 修改用户信息 |
|||
*/ |
|||
Boolean updateByBo(UserInfoBo bo); |
|||
|
|||
/** |
|||
* 校验并批量删除用户信息信息 |
|||
*/ |
|||
Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid); |
|||
} |
@ -0,0 +1,49 @@ |
|||
package com.coin.business.service; |
|||
|
|||
import com.coin.business.domain.UserPasswd; |
|||
import com.coin.business.domain.vo.UserPasswdVo; |
|||
import com.coin.business.domain.bo.UserPasswdBo; |
|||
import com.coin.common.core.page.TableDataInfo; |
|||
import com.coin.common.core.domain.PageQuery; |
|||
|
|||
import java.util.Collection; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 用户密码Service接口 |
|||
* |
|||
* @author coin |
|||
* @date 2025-02-21 |
|||
*/ |
|||
public interface IUserPasswdService { |
|||
|
|||
/** |
|||
* 查询用户密码 |
|||
*/ |
|||
UserPasswdVo queryById(Long id); |
|||
|
|||
/** |
|||
* 查询用户密码列表 |
|||
*/ |
|||
TableDataInfo<UserPasswdVo> queryPageList(UserPasswdBo bo, PageQuery pageQuery); |
|||
|
|||
/** |
|||
* 查询用户密码列表 |
|||
*/ |
|||
List<UserPasswdVo> queryList(UserPasswdBo bo); |
|||
|
|||
/** |
|||
* 新增用户密码 |
|||
*/ |
|||
Boolean insertByBo(UserPasswdBo bo); |
|||
|
|||
/** |
|||
* 修改用户密码 |
|||
*/ |
|||
Boolean updateByBo(UserPasswdBo bo); |
|||
|
|||
/** |
|||
* 校验并批量删除用户密码信息 |
|||
*/ |
|||
Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid); |
|||
} |
@ -0,0 +1,49 @@ |
|||
package com.coin.business.service; |
|||
|
|||
import com.coin.business.domain.UserRegister; |
|||
import com.coin.business.domain.vo.UserRegisterVo; |
|||
import com.coin.business.domain.bo.UserRegisterBo; |
|||
import com.coin.common.core.page.TableDataInfo; |
|||
import com.coin.common.core.domain.PageQuery; |
|||
|
|||
import java.util.Collection; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 用户注册Service接口 |
|||
* |
|||
* @author coin |
|||
* @date 2025-02-21 |
|||
*/ |
|||
public interface IUserRegisterService { |
|||
|
|||
/** |
|||
* 查询用户注册 |
|||
*/ |
|||
UserRegisterVo queryById(Long id); |
|||
|
|||
/** |
|||
* 查询用户注册列表 |
|||
*/ |
|||
TableDataInfo<UserRegisterVo> queryPageList(UserRegisterBo bo, PageQuery pageQuery); |
|||
|
|||
/** |
|||
* 查询用户注册列表 |
|||
*/ |
|||
List<UserRegisterVo> queryList(UserRegisterBo bo); |
|||
|
|||
/** |
|||
* 新增用户注册 |
|||
*/ |
|||
Boolean insertByBo(UserRegisterBo bo); |
|||
|
|||
/** |
|||
* 修改用户注册 |
|||
*/ |
|||
Boolean updateByBo(UserRegisterBo bo); |
|||
|
|||
/** |
|||
* 校验并批量删除用户注册信息 |
|||
*/ |
|||
Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid); |
|||
} |
@ -0,0 +1,118 @@ |
|||
package com.coin.business.service.impl; |
|||
|
|||
import cn.hutool.core.bean.BeanUtil; |
|||
import com.coin.common.core.page.TableDataInfo; |
|||
import com.coin.common.core.domain.PageQuery; |
|||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|||
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|||
import com.coin.common.utils.StringUtils; |
|||
import lombok.RequiredArgsConstructor; |
|||
import org.springframework.stereotype.Service; |
|||
import com.coin.business.domain.bo.UserAccountBo; |
|||
import com.coin.business.domain.vo.UserAccountVo; |
|||
import com.coin.business.domain.UserAccount; |
|||
import com.coin.business.mapper.UserAccountMapper; |
|||
import com.coin.business.service.IUserAccountService; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
import java.util.Collection; |
|||
|
|||
/** |
|||
* 用户账户Service业务层处理 |
|||
* |
|||
* @author coin |
|||
* @date 2025-02-21 |
|||
*/ |
|||
@RequiredArgsConstructor |
|||
@Service |
|||
public class UserAccountServiceImpl implements IUserAccountService { |
|||
|
|||
private final UserAccountMapper baseMapper; |
|||
|
|||
/** |
|||
* 查询用户账户 |
|||
*/ |
|||
@Override |
|||
public UserAccountVo queryById(Long id){ |
|||
return baseMapper.selectVoById(id); |
|||
} |
|||
|
|||
/** |
|||
* 查询用户账户列表 |
|||
*/ |
|||
@Override |
|||
public TableDataInfo<UserAccountVo> queryPageList(UserAccountBo bo, PageQuery pageQuery) { |
|||
LambdaQueryWrapper<UserAccount> lqw = buildQueryWrapper(bo); |
|||
Page<UserAccountVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw); |
|||
return TableDataInfo.build(result); |
|||
} |
|||
|
|||
/** |
|||
* 查询用户账户列表 |
|||
*/ |
|||
@Override |
|||
public List<UserAccountVo> queryList(UserAccountBo bo) { |
|||
LambdaQueryWrapper<UserAccount> lqw = buildQueryWrapper(bo); |
|||
return baseMapper.selectVoList(lqw); |
|||
} |
|||
|
|||
private LambdaQueryWrapper<UserAccount> buildQueryWrapper(UserAccountBo bo) { |
|||
Map<String, Object> params = bo.getParams(); |
|||
LambdaQueryWrapper<UserAccount> lqw = Wrappers.lambdaQuery(); |
|||
lqw.eq(StringUtils.isNotBlank(bo.getUserId()), UserAccount::getUserId, bo.getUserId()); |
|||
lqw.eq(StringUtils.isNotBlank(bo.getAccountId()), UserAccount::getAccountId, bo.getAccountId()); |
|||
lqw.eq(StringUtils.isNotBlank(bo.getAccountCode()), UserAccount::getAccountCode, bo.getAccountCode()); |
|||
lqw.like(StringUtils.isNotBlank(bo.getAccountName()), UserAccount::getAccountName, bo.getAccountName()); |
|||
lqw.eq(bo.getAccountAmount() != null, UserAccount::getAccountAmount, bo.getAccountAmount()); |
|||
lqw.eq(StringUtils.isNotBlank(bo.getStatus()), UserAccount::getStatus, bo.getStatus()); |
|||
lqw.between(params.get("beginCreateTime") != null && params.get("endCreateTime") != null, |
|||
UserAccount::getCreateTime ,params.get("beginCreateTime"), params.get("endCreateTime")); |
|||
lqw.between(params.get("beginUpdateTime") != null && params.get("endUpdateTime") != null, |
|||
UserAccount::getUpdateTime ,params.get("beginUpdateTime"), params.get("endUpdateTime")); |
|||
return lqw; |
|||
} |
|||
|
|||
/** |
|||
* 新增用户账户 |
|||
*/ |
|||
@Override |
|||
public Boolean insertByBo(UserAccountBo bo) { |
|||
UserAccount add = BeanUtil.toBean(bo, UserAccount.class); |
|||
validEntityBeforeSave(add); |
|||
boolean flag = baseMapper.insert(add) > 0; |
|||
if (flag) { |
|||
bo.setId(add.getId()); |
|||
} |
|||
return flag; |
|||
} |
|||
|
|||
/** |
|||
* 修改用户账户 |
|||
*/ |
|||
@Override |
|||
public Boolean updateByBo(UserAccountBo bo) { |
|||
UserAccount update = BeanUtil.toBean(bo, UserAccount.class); |
|||
validEntityBeforeSave(update); |
|||
return baseMapper.updateById(update) > 0; |
|||
} |
|||
|
|||
/** |
|||
* 保存前的数据校验 |
|||
*/ |
|||
private void validEntityBeforeSave(UserAccount entity){ |
|||
//TODO 做一些数据校验,如唯一约束
|
|||
} |
|||
|
|||
/** |
|||
* 批量删除用户账户 |
|||
*/ |
|||
@Override |
|||
public Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid) { |
|||
if(isValid){ |
|||
//TODO 做一些业务上的校验,判断是否需要校验
|
|||
} |
|||
return baseMapper.deleteBatchIds(ids) > 0; |
|||
} |
|||
} |
@ -0,0 +1,118 @@ |
|||
package com.coin.business.service.impl; |
|||
|
|||
import cn.hutool.core.bean.BeanUtil; |
|||
import com.coin.common.core.page.TableDataInfo; |
|||
import com.coin.common.core.domain.PageQuery; |
|||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|||
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|||
import com.coin.common.utils.StringUtils; |
|||
import lombok.RequiredArgsConstructor; |
|||
import org.springframework.stereotype.Service; |
|||
import com.coin.business.domain.bo.UserCardBo; |
|||
import com.coin.business.domain.vo.UserCardVo; |
|||
import com.coin.business.domain.UserCard; |
|||
import com.coin.business.mapper.UserCardMapper; |
|||
import com.coin.business.service.IUserCardService; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
import java.util.Collection; |
|||
|
|||
/** |
|||
* 用户银行卡Service业务层处理 |
|||
* |
|||
* @author coin |
|||
* @date 2025-02-21 |
|||
*/ |
|||
@RequiredArgsConstructor |
|||
@Service |
|||
public class UserCardServiceImpl implements IUserCardService { |
|||
|
|||
private final UserCardMapper baseMapper; |
|||
|
|||
/** |
|||
* 查询用户银行卡 |
|||
*/ |
|||
@Override |
|||
public UserCardVo queryById(Long id){ |
|||
return baseMapper.selectVoById(id); |
|||
} |
|||
|
|||
/** |
|||
* 查询用户银行卡列表 |
|||
*/ |
|||
@Override |
|||
public TableDataInfo<UserCardVo> queryPageList(UserCardBo bo, PageQuery pageQuery) { |
|||
LambdaQueryWrapper<UserCard> lqw = buildQueryWrapper(bo); |
|||
Page<UserCardVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw); |
|||
return TableDataInfo.build(result); |
|||
} |
|||
|
|||
/** |
|||
* 查询用户银行卡列表 |
|||
*/ |
|||
@Override |
|||
public List<UserCardVo> queryList(UserCardBo bo) { |
|||
LambdaQueryWrapper<UserCard> lqw = buildQueryWrapper(bo); |
|||
return baseMapper.selectVoList(lqw); |
|||
} |
|||
|
|||
private LambdaQueryWrapper<UserCard> buildQueryWrapper(UserCardBo bo) { |
|||
Map<String, Object> params = bo.getParams(); |
|||
LambdaQueryWrapper<UserCard> lqw = Wrappers.lambdaQuery(); |
|||
lqw.eq(StringUtils.isNotBlank(bo.getUserId()), UserCard::getUserId, bo.getUserId()); |
|||
lqw.eq(StringUtils.isNotBlank(bo.getCardNum()), UserCard::getCardNum, bo.getCardNum()); |
|||
lqw.eq(bo.getCardAmount() != null, UserCard::getCardAmount, bo.getCardAmount()); |
|||
lqw.like(StringUtils.isNotBlank(bo.getBankName()), UserCard::getBankName, bo.getBankName()); |
|||
lqw.like(StringUtils.isNotBlank(bo.getDeptName()), UserCard::getDeptName, bo.getDeptName()); |
|||
lqw.eq(StringUtils.isNotBlank(bo.getStatus()), UserCard::getStatus, bo.getStatus()); |
|||
lqw.between(params.get("beginCreateTime") != null && params.get("endCreateTime") != null, |
|||
UserCard::getCreateTime ,params.get("beginCreateTime"), params.get("endCreateTime")); |
|||
lqw.between(params.get("beginUpdateTime") != null && params.get("endUpdateTime") != null, |
|||
UserCard::getUpdateTime ,params.get("beginUpdateTime"), params.get("endUpdateTime")); |
|||
return lqw; |
|||
} |
|||
|
|||
/** |
|||
* 新增用户银行卡 |
|||
*/ |
|||
@Override |
|||
public Boolean insertByBo(UserCardBo bo) { |
|||
UserCard add = BeanUtil.toBean(bo, UserCard.class); |
|||
validEntityBeforeSave(add); |
|||
boolean flag = baseMapper.insert(add) > 0; |
|||
if (flag) { |
|||
bo.setId(add.getId()); |
|||
} |
|||
return flag; |
|||
} |
|||
|
|||
/** |
|||
* 修改用户银行卡 |
|||
*/ |
|||
@Override |
|||
public Boolean updateByBo(UserCardBo bo) { |
|||
UserCard update = BeanUtil.toBean(bo, UserCard.class); |
|||
validEntityBeforeSave(update); |
|||
return baseMapper.updateById(update) > 0; |
|||
} |
|||
|
|||
/** |
|||
* 保存前的数据校验 |
|||
*/ |
|||
private void validEntityBeforeSave(UserCard entity){ |
|||
//TODO 做一些数据校验,如唯一约束
|
|||
} |
|||
|
|||
/** |
|||
* 批量删除用户银行卡 |
|||
*/ |
|||
@Override |
|||
public Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid) { |
|||
if(isValid){ |
|||
//TODO 做一些业务上的校验,判断是否需要校验
|
|||
} |
|||
return baseMapper.deleteBatchIds(ids) > 0; |
|||
} |
|||
} |
@ -0,0 +1,114 @@ |
|||
package com.coin.business.service.impl; |
|||
|
|||
import cn.hutool.core.bean.BeanUtil; |
|||
import com.coin.common.core.page.TableDataInfo; |
|||
import com.coin.common.core.domain.PageQuery; |
|||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|||
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|||
import com.coin.common.utils.StringUtils; |
|||
import lombok.RequiredArgsConstructor; |
|||
import org.springframework.stereotype.Service; |
|||
import com.coin.business.domain.bo.UserFriendBo; |
|||
import com.coin.business.domain.vo.UserFriendVo; |
|||
import com.coin.business.domain.UserFriend; |
|||
import com.coin.business.mapper.UserFriendMapper; |
|||
import com.coin.business.service.IUserFriendService; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
import java.util.Collection; |
|||
|
|||
/** |
|||
* 用户好友Service业务层处理 |
|||
* |
|||
* @author coin |
|||
* @date 2025-02-21 |
|||
*/ |
|||
@RequiredArgsConstructor |
|||
@Service |
|||
public class UserFriendServiceImpl implements IUserFriendService { |
|||
|
|||
private final UserFriendMapper baseMapper; |
|||
|
|||
/** |
|||
* 查询用户好友 |
|||
*/ |
|||
@Override |
|||
public UserFriendVo queryById(Long id){ |
|||
return baseMapper.selectVoById(id); |
|||
} |
|||
|
|||
/** |
|||
* 查询用户好友列表 |
|||
*/ |
|||
@Override |
|||
public TableDataInfo<UserFriendVo> queryPageList(UserFriendBo bo, PageQuery pageQuery) { |
|||
LambdaQueryWrapper<UserFriend> lqw = buildQueryWrapper(bo); |
|||
Page<UserFriendVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw); |
|||
return TableDataInfo.build(result); |
|||
} |
|||
|
|||
/** |
|||
* 查询用户好友列表 |
|||
*/ |
|||
@Override |
|||
public List<UserFriendVo> queryList(UserFriendBo bo) { |
|||
LambdaQueryWrapper<UserFriend> lqw = buildQueryWrapper(bo); |
|||
return baseMapper.selectVoList(lqw); |
|||
} |
|||
|
|||
private LambdaQueryWrapper<UserFriend> buildQueryWrapper(UserFriendBo bo) { |
|||
Map<String, Object> params = bo.getParams(); |
|||
LambdaQueryWrapper<UserFriend> lqw = Wrappers.lambdaQuery(); |
|||
lqw.eq(StringUtils.isNotBlank(bo.getUserId()), UserFriend::getUserId, bo.getUserId()); |
|||
lqw.eq(StringUtils.isNotBlank(bo.getFriendId()), UserFriend::getFriendId, bo.getFriendId()); |
|||
lqw.eq(StringUtils.isNotBlank(bo.getStatus()), UserFriend::getStatus, bo.getStatus()); |
|||
lqw.eq(StringUtils.isNotBlank(bo.getDelFlag()), UserFriend::getDelFlag, bo.getDelFlag()); |
|||
lqw.between(params.get("beginCreateTime") != null && params.get("endCreateTime") != null, |
|||
UserFriend::getCreateTime ,params.get("beginCreateTime"), params.get("endCreateTime")); |
|||
return lqw; |
|||
} |
|||
|
|||
/** |
|||
* 新增用户好友 |
|||
*/ |
|||
@Override |
|||
public Boolean insertByBo(UserFriendBo bo) { |
|||
UserFriend add = BeanUtil.toBean(bo, UserFriend.class); |
|||
validEntityBeforeSave(add); |
|||
boolean flag = baseMapper.insert(add) > 0; |
|||
if (flag) { |
|||
bo.setId(add.getId()); |
|||
} |
|||
return flag; |
|||
} |
|||
|
|||
/** |
|||
* 修改用户好友 |
|||
*/ |
|||
@Override |
|||
public Boolean updateByBo(UserFriendBo bo) { |
|||
UserFriend update = BeanUtil.toBean(bo, UserFriend.class); |
|||
validEntityBeforeSave(update); |
|||
return baseMapper.updateById(update) > 0; |
|||
} |
|||
|
|||
/** |
|||
* 保存前的数据校验 |
|||
*/ |
|||
private void validEntityBeforeSave(UserFriend entity){ |
|||
//TODO 做一些数据校验,如唯一约束
|
|||
} |
|||
|
|||
/** |
|||
* 批量删除用户好友 |
|||
*/ |
|||
@Override |
|||
public Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid) { |
|||
if(isValid){ |
|||
//TODO 做一些业务上的校验,判断是否需要校验
|
|||
} |
|||
return baseMapper.deleteBatchIds(ids) > 0; |
|||
} |
|||
} |
@ -0,0 +1,121 @@ |
|||
package com.coin.business.service.impl; |
|||
|
|||
import cn.hutool.core.bean.BeanUtil; |
|||
import com.coin.common.core.page.TableDataInfo; |
|||
import com.coin.common.core.domain.PageQuery; |
|||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|||
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|||
import com.coin.common.utils.StringUtils; |
|||
import lombok.RequiredArgsConstructor; |
|||
import org.springframework.stereotype.Service; |
|||
import com.coin.business.domain.bo.UserInfoBo; |
|||
import com.coin.business.domain.vo.UserInfoVo; |
|||
import com.coin.business.domain.UserInfo; |
|||
import com.coin.business.mapper.UserInfoMapper; |
|||
import com.coin.business.service.IUserInfoService; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
import java.util.Collection; |
|||
|
|||
/** |
|||
* 用户信息Service业务层处理 |
|||
* |
|||
* @author coin |
|||
* @date 2025-02-21 |
|||
*/ |
|||
@RequiredArgsConstructor |
|||
@Service |
|||
public class UserInfoServiceImpl implements IUserInfoService { |
|||
|
|||
private final UserInfoMapper baseMapper; |
|||
|
|||
/** |
|||
* 查询用户信息 |
|||
*/ |
|||
@Override |
|||
public UserInfoVo queryById(Long id){ |
|||
return baseMapper.selectVoById(id); |
|||
} |
|||
|
|||
/** |
|||
* 查询用户信息列表 |
|||
*/ |
|||
@Override |
|||
public TableDataInfo<UserInfoVo> queryPageList(UserInfoBo bo, PageQuery pageQuery) { |
|||
LambdaQueryWrapper<UserInfo> lqw = buildQueryWrapper(bo); |
|||
Page<UserInfoVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw); |
|||
return TableDataInfo.build(result); |
|||
} |
|||
|
|||
/** |
|||
* 查询用户信息列表 |
|||
*/ |
|||
@Override |
|||
public List<UserInfoVo> queryList(UserInfoBo bo) { |
|||
LambdaQueryWrapper<UserInfo> lqw = buildQueryWrapper(bo); |
|||
return baseMapper.selectVoList(lqw); |
|||
} |
|||
|
|||
private LambdaQueryWrapper<UserInfo> buildQueryWrapper(UserInfoBo bo) { |
|||
Map<String, Object> params = bo.getParams(); |
|||
LambdaQueryWrapper<UserInfo> lqw = Wrappers.lambdaQuery(); |
|||
lqw.eq(StringUtils.isNotBlank(bo.getUserId()), UserInfo::getUserId, bo.getUserId()); |
|||
lqw.eq(StringUtils.isNotBlank(bo.getUserCode()), UserInfo::getUserCode, bo.getUserCode()); |
|||
lqw.like(StringUtils.isNotBlank(bo.getName()), UserInfo::getName, bo.getName()); |
|||
lqw.eq(StringUtils.isNotBlank(bo.getGender()), UserInfo::getGender, bo.getGender()); |
|||
lqw.eq(StringUtils.isNotBlank(bo.getIdCard()), UserInfo::getIdCard, bo.getIdCard()); |
|||
lqw.eq(StringUtils.isNotBlank(bo.getPhone()), UserInfo::getPhone, bo.getPhone()); |
|||
lqw.between(params.get("beginAge") != null && params.get("endAge") != null, |
|||
UserInfo::getAge ,params.get("beginAge"), params.get("endAge")); |
|||
lqw.eq(StringUtils.isNotBlank(bo.getAddr()), UserInfo::getAddr, bo.getAddr()); |
|||
lqw.eq(StringUtils.isNotBlank(bo.getStatus()), UserInfo::getStatus, bo.getStatus()); |
|||
lqw.eq(StringUtils.isNotBlank(bo.getDelFlag()), UserInfo::getDelFlag, bo.getDelFlag()); |
|||
lqw.between(params.get("beginCreateTime") != null && params.get("endCreateTime") != null, |
|||
UserInfo::getCreateTime ,params.get("beginCreateTime"), params.get("endCreateTime")); |
|||
return lqw; |
|||
} |
|||
|
|||
/** |
|||
* 新增用户信息 |
|||
*/ |
|||
@Override |
|||
public Boolean insertByBo(UserInfoBo bo) { |
|||
UserInfo add = BeanUtil.toBean(bo, UserInfo.class); |
|||
validEntityBeforeSave(add); |
|||
boolean flag = baseMapper.insert(add) > 0; |
|||
if (flag) { |
|||
bo.setId(add.getId()); |
|||
} |
|||
return flag; |
|||
} |
|||
|
|||
/** |
|||
* 修改用户信息 |
|||
*/ |
|||
@Override |
|||
public Boolean updateByBo(UserInfoBo bo) { |
|||
UserInfo update = BeanUtil.toBean(bo, UserInfo.class); |
|||
validEntityBeforeSave(update); |
|||
return baseMapper.updateById(update) > 0; |
|||
} |
|||
|
|||
/** |
|||
* 保存前的数据校验 |
|||
*/ |
|||
private void validEntityBeforeSave(UserInfo entity){ |
|||
//TODO 做一些数据校验,如唯一约束
|
|||
} |
|||
|
|||
/** |
|||
* 批量删除用户信息 |
|||
*/ |
|||
@Override |
|||
public Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid) { |
|||
if(isValid){ |
|||
//TODO 做一些业务上的校验,判断是否需要校验
|
|||
} |
|||
return baseMapper.deleteBatchIds(ids) > 0; |
|||
} |
|||
} |
@ -0,0 +1,117 @@ |
|||
package com.coin.business.service.impl; |
|||
|
|||
import cn.hutool.core.bean.BeanUtil; |
|||
import com.coin.common.core.page.TableDataInfo; |
|||
import com.coin.common.core.domain.PageQuery; |
|||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|||
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|||
import com.coin.common.utils.StringUtils; |
|||
import lombok.RequiredArgsConstructor; |
|||
import org.springframework.stereotype.Service; |
|||
import com.coin.business.domain.bo.UserPasswdBo; |
|||
import com.coin.business.domain.vo.UserPasswdVo; |
|||
import com.coin.business.domain.UserPasswd; |
|||
import com.coin.business.mapper.UserPasswdMapper; |
|||
import com.coin.business.service.IUserPasswdService; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
import java.util.Collection; |
|||
|
|||
/** |
|||
* 用户密码Service业务层处理 |
|||
* |
|||
* @author coin |
|||
* @date 2025-02-21 |
|||
*/ |
|||
@RequiredArgsConstructor |
|||
@Service |
|||
public class UserPasswdServiceImpl implements IUserPasswdService { |
|||
|
|||
private final UserPasswdMapper baseMapper; |
|||
|
|||
/** |
|||
* 查询用户密码 |
|||
*/ |
|||
@Override |
|||
public UserPasswdVo queryById(Long id){ |
|||
return baseMapper.selectVoById(id); |
|||
} |
|||
|
|||
/** |
|||
* 查询用户密码列表 |
|||
*/ |
|||
@Override |
|||
public TableDataInfo<UserPasswdVo> queryPageList(UserPasswdBo bo, PageQuery pageQuery) { |
|||
LambdaQueryWrapper<UserPasswd> lqw = buildQueryWrapper(bo); |
|||
Page<UserPasswdVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw); |
|||
return TableDataInfo.build(result); |
|||
} |
|||
|
|||
/** |
|||
* 查询用户密码列表 |
|||
*/ |
|||
@Override |
|||
public List<UserPasswdVo> queryList(UserPasswdBo bo) { |
|||
LambdaQueryWrapper<UserPasswd> lqw = buildQueryWrapper(bo); |
|||
return baseMapper.selectVoList(lqw); |
|||
} |
|||
|
|||
private LambdaQueryWrapper<UserPasswd> buildQueryWrapper(UserPasswdBo bo) { |
|||
Map<String, Object> params = bo.getParams(); |
|||
LambdaQueryWrapper<UserPasswd> lqw = Wrappers.lambdaQuery(); |
|||
lqw.eq(StringUtils.isNotBlank(bo.getUserId()), UserPasswd::getUserId, bo.getUserId()); |
|||
lqw.eq(StringUtils.isNotBlank(bo.getPayPasswd()), UserPasswd::getPayPasswd, bo.getPayPasswd()); |
|||
lqw.eq(StringUtils.isNotBlank(bo.getLoginPasswd()), UserPasswd::getLoginPasswd, bo.getLoginPasswd()); |
|||
lqw.eq(StringUtils.isNotBlank(bo.getPayStatus()), UserPasswd::getPayStatus, bo.getPayStatus()); |
|||
lqw.eq(StringUtils.isNotBlank(bo.getDelFlag()), UserPasswd::getDelFlag, bo.getDelFlag()); |
|||
lqw.between(params.get("beginCreateTime") != null && params.get("endCreateTime") != null, |
|||
UserPasswd::getCreateTime ,params.get("beginCreateTime"), params.get("endCreateTime")); |
|||
lqw.between(params.get("beginUpdateTime") != null && params.get("endUpdateTime") != null, |
|||
UserPasswd::getUpdateTime ,params.get("beginUpdateTime"), params.get("endUpdateTime")); |
|||
return lqw; |
|||
} |
|||
|
|||
/** |
|||
* 新增用户密码 |
|||
*/ |
|||
@Override |
|||
public Boolean insertByBo(UserPasswdBo bo) { |
|||
UserPasswd add = BeanUtil.toBean(bo, UserPasswd.class); |
|||
validEntityBeforeSave(add); |
|||
boolean flag = baseMapper.insert(add) > 0; |
|||
if (flag) { |
|||
bo.setId(add.getId()); |
|||
} |
|||
return flag; |
|||
} |
|||
|
|||
/** |
|||
* 修改用户密码 |
|||
*/ |
|||
@Override |
|||
public Boolean updateByBo(UserPasswdBo bo) { |
|||
UserPasswd update = BeanUtil.toBean(bo, UserPasswd.class); |
|||
validEntityBeforeSave(update); |
|||
return baseMapper.updateById(update) > 0; |
|||
} |
|||
|
|||
/** |
|||
* 保存前的数据校验 |
|||
*/ |
|||
private void validEntityBeforeSave(UserPasswd entity){ |
|||
//TODO 做一些数据校验,如唯一约束
|
|||
} |
|||
|
|||
/** |
|||
* 批量删除用户密码 |
|||
*/ |
|||
@Override |
|||
public Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid) { |
|||
if(isValid){ |
|||
//TODO 做一些业务上的校验,判断是否需要校验
|
|||
} |
|||
return baseMapper.deleteBatchIds(ids) > 0; |
|||
} |
|||
} |
@ -0,0 +1,118 @@ |
|||
package com.coin.business.service.impl; |
|||
|
|||
import cn.hutool.core.bean.BeanUtil; |
|||
import com.coin.common.core.page.TableDataInfo; |
|||
import com.coin.common.core.domain.PageQuery; |
|||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|||
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|||
import com.coin.common.utils.StringUtils; |
|||
import lombok.RequiredArgsConstructor; |
|||
import org.springframework.stereotype.Service; |
|||
import com.coin.business.domain.bo.UserRegisterBo; |
|||
import com.coin.business.domain.vo.UserRegisterVo; |
|||
import com.coin.business.domain.UserRegister; |
|||
import com.coin.business.mapper.UserRegisterMapper; |
|||
import com.coin.business.service.IUserRegisterService; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
import java.util.Collection; |
|||
|
|||
/** |
|||
* 用户注册Service业务层处理 |
|||
* |
|||
* @author coin |
|||
* @date 2025-02-21 |
|||
*/ |
|||
@RequiredArgsConstructor |
|||
@Service |
|||
public class UserRegisterServiceImpl implements IUserRegisterService { |
|||
|
|||
private final UserRegisterMapper baseMapper; |
|||
|
|||
/** |
|||
* 查询用户注册 |
|||
*/ |
|||
@Override |
|||
public UserRegisterVo queryById(Long id){ |
|||
return baseMapper.selectVoById(id); |
|||
} |
|||
|
|||
/** |
|||
* 查询用户注册列表 |
|||
*/ |
|||
@Override |
|||
public TableDataInfo<UserRegisterVo> queryPageList(UserRegisterBo bo, PageQuery pageQuery) { |
|||
LambdaQueryWrapper<UserRegister> lqw = buildQueryWrapper(bo); |
|||
Page<UserRegisterVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw); |
|||
return TableDataInfo.build(result); |
|||
} |
|||
|
|||
/** |
|||
* 查询用户注册列表 |
|||
*/ |
|||
@Override |
|||
public List<UserRegisterVo> queryList(UserRegisterBo bo) { |
|||
LambdaQueryWrapper<UserRegister> lqw = buildQueryWrapper(bo); |
|||
return baseMapper.selectVoList(lqw); |
|||
} |
|||
|
|||
private LambdaQueryWrapper<UserRegister> buildQueryWrapper(UserRegisterBo bo) { |
|||
Map<String, Object> params = bo.getParams(); |
|||
LambdaQueryWrapper<UserRegister> lqw = Wrappers.lambdaQuery(); |
|||
lqw.eq(StringUtils.isNotBlank(bo.getUserId()), UserRegister::getUserId, bo.getUserId()); |
|||
lqw.like(StringUtils.isNotBlank(bo.getName()), UserRegister::getName, bo.getName()); |
|||
lqw.eq(StringUtils.isNotBlank(bo.getPhone()), UserRegister::getPhone, bo.getPhone()); |
|||
lqw.eq(StringUtils.isNotBlank(bo.getPasswd()), UserRegister::getPasswd, bo.getPasswd()); |
|||
lqw.eq(StringUtils.isNotBlank(bo.getVerifyCode()), UserRegister::getVerifyCode, bo.getVerifyCode()); |
|||
lqw.eq(StringUtils.isNotBlank(bo.getStatus()), UserRegister::getStatus, bo.getStatus()); |
|||
lqw.between(params.get("beginCreateTime") != null && params.get("endCreateTime") != null, |
|||
UserRegister::getCreateTime ,params.get("beginCreateTime"), params.get("endCreateTime")); |
|||
lqw.between(params.get("beginUpdateTime") != null && params.get("endUpdateTime") != null, |
|||
UserRegister::getUpdateTime ,params.get("beginUpdateTime"), params.get("endUpdateTime")); |
|||
return lqw; |
|||
} |
|||
|
|||
/** |
|||
* 新增用户注册 |
|||
*/ |
|||
@Override |
|||
public Boolean insertByBo(UserRegisterBo bo) { |
|||
UserRegister add = BeanUtil.toBean(bo, UserRegister.class); |
|||
validEntityBeforeSave(add); |
|||
boolean flag = baseMapper.insert(add) > 0; |
|||
if (flag) { |
|||
bo.setId(add.getId()); |
|||
} |
|||
return flag; |
|||
} |
|||
|
|||
/** |
|||
* 修改用户注册 |
|||
*/ |
|||
@Override |
|||
public Boolean updateByBo(UserRegisterBo bo) { |
|||
UserRegister update = BeanUtil.toBean(bo, UserRegister.class); |
|||
validEntityBeforeSave(update); |
|||
return baseMapper.updateById(update) > 0; |
|||
} |
|||
|
|||
/** |
|||
* 保存前的数据校验 |
|||
*/ |
|||
private void validEntityBeforeSave(UserRegister entity){ |
|||
//TODO 做一些数据校验,如唯一约束
|
|||
} |
|||
|
|||
/** |
|||
* 批量删除用户注册 |
|||
*/ |
|||
@Override |
|||
public Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid) { |
|||
if(isValid){ |
|||
//TODO 做一些业务上的校验,判断是否需要校验
|
|||
} |
|||
return baseMapper.deleteBatchIds(ids) > 0; |
|||
} |
|||
} |
@ -0,0 +1,23 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<!DOCTYPE mapper |
|||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.coin.business.mapper.UserAccountMapper"> |
|||
|
|||
<resultMap type="com.coin.business.domain.UserAccount" id="UserAccountResult"> |
|||
<result property="id" column="id"/> |
|||
<result property="userId" column="user_id"/> |
|||
<result property="accountId" column="account_id"/> |
|||
<result property="accountCode" column="account_code"/> |
|||
<result property="accountName" column="account_name"/> |
|||
<result property="accountAmount" column="account_amount"/> |
|||
<result property="status" column="status"/> |
|||
<result property="delFlag" column="del_flag"/> |
|||
<result property="createBy" column="create_by"/> |
|||
<result property="createTime" column="create_time"/> |
|||
<result property="updateBy" column="update_by"/> |
|||
<result property="updateTime" column="update_time"/> |
|||
</resultMap> |
|||
|
|||
|
|||
</mapper> |
@ -0,0 +1,23 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<!DOCTYPE mapper |
|||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.coin.business.mapper.UserCardMapper"> |
|||
|
|||
<resultMap type="com.coin.business.domain.UserCard" id="UserCardResult"> |
|||
<result property="id" column="id"/> |
|||
<result property="userId" column="user_id"/> |
|||
<result property="cardNum" column="card_num"/> |
|||
<result property="cardAmount" column="card_amount"/> |
|||
<result property="bankName" column="bank_name"/> |
|||
<result property="deptName" column="dept_name"/> |
|||
<result property="status" column="status"/> |
|||
<result property="delFlag" column="del_flag"/> |
|||
<result property="createBy" column="create_by"/> |
|||
<result property="createTime" column="create_time"/> |
|||
<result property="updateBy" column="update_by"/> |
|||
<result property="updateTime" column="update_time"/> |
|||
</resultMap> |
|||
|
|||
|
|||
</mapper> |
@ -0,0 +1,20 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<!DOCTYPE mapper |
|||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.coin.business.mapper.UserFriendMapper"> |
|||
|
|||
<resultMap type="com.coin.business.domain.UserFriend" id="UserFriendResult"> |
|||
<result property="id" column="id"/> |
|||
<result property="userId" column="user_id"/> |
|||
<result property="friendId" column="friend_id"/> |
|||
<result property="status" column="status"/> |
|||
<result property="delFlag" column="del_flag"/> |
|||
<result property="createBy" column="create_by"/> |
|||
<result property="createTime" column="create_time"/> |
|||
<result property="updateBy" column="update_by"/> |
|||
<result property="updateTime" column="update_time"/> |
|||
</resultMap> |
|||
|
|||
|
|||
</mapper> |
@ -0,0 +1,26 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<!DOCTYPE mapper |
|||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.coin.business.mapper.UserInfoMapper"> |
|||
|
|||
<resultMap type="com.coin.business.domain.UserInfo" id="UserInfoResult"> |
|||
<result property="id" column="id"/> |
|||
<result property="userId" column="user_id"/> |
|||
<result property="userCode" column="user_code"/> |
|||
<result property="name" column="name"/> |
|||
<result property="gender" column="gender"/> |
|||
<result property="idCard" column="id_card"/> |
|||
<result property="phone" column="phone"/> |
|||
<result property="age" column="age"/> |
|||
<result property="addr" column="addr"/> |
|||
<result property="status" column="status"/> |
|||
<result property="delFlag" column="del_flag"/> |
|||
<result property="createBy" column="create_by"/> |
|||
<result property="createTime" column="create_time"/> |
|||
<result property="updateBy" column="update_by"/> |
|||
<result property="updateTime" column="update_time"/> |
|||
</resultMap> |
|||
|
|||
|
|||
</mapper> |
@ -0,0 +1,22 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<!DOCTYPE mapper |
|||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.coin.business.mapper.UserPasswdMapper"> |
|||
|
|||
<resultMap type="com.coin.business.domain.UserPasswd" id="UserPasswdResult"> |
|||
<result property="id" column="id"/> |
|||
<result property="userId" column="user_id"/> |
|||
<result property="payPasswd" column="pay_passwd"/> |
|||
<result property="phoneLock" column="phone_lock"/> |
|||
<result property="loginPasswd" column="login_passwd"/> |
|||
<result property="payStatus" column="pay_status"/> |
|||
<result property="delFlag" column="del_flag"/> |
|||
<result property="createBy" column="create_by"/> |
|||
<result property="createTime" column="create_time"/> |
|||
<result property="updateBy" column="update_by"/> |
|||
<result property="updateTime" column="update_time"/> |
|||
</resultMap> |
|||
|
|||
|
|||
</mapper> |
@ -0,0 +1,23 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<!DOCTYPE mapper |
|||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.coin.business.mapper.UserRegisterMapper"> |
|||
|
|||
<resultMap type="com.coin.business.domain.UserRegister" id="UserRegisterResult"> |
|||
<result property="id" column="id"/> |
|||
<result property="userId" column="user_id"/> |
|||
<result property="name" column="name"/> |
|||
<result property="phone" column="phone"/> |
|||
<result property="passwd" column="passwd"/> |
|||
<result property="verifyCode" column="verify_code"/> |
|||
<result property="status" column="status"/> |
|||
<result property="delFlag" column="del_flag"/> |
|||
<result property="createBy" column="create_by"/> |
|||
<result property="createTime" column="create_time"/> |
|||
<result property="updateBy" column="update_by"/> |
|||
<result property="updateTime" column="update_time"/> |
|||
</resultMap> |
|||
|
|||
|
|||
</mapper> |
File diff suppressed because it is too large
Loading…
Reference in new issue