修改package

- impl 增加 biz
pull/1/head
sin 2019-04-06 17:25:13 +08:00
parent 7e82191358
commit 27d3a6bba1
66 changed files with 173 additions and 173 deletions

View File

@ -3,10 +3,10 @@ package cn.iocoder.mall.user.application.controller.admins;
import cn.iocoder.common.framework.vo.CommonResult; import cn.iocoder.common.framework.vo.CommonResult;
import cn.iocoder.mall.user.application.convert.UserConvert; import cn.iocoder.mall.user.application.convert.UserConvert;
import cn.iocoder.mall.user.application.vo.admins.AdminsUserPageVO; import cn.iocoder.mall.user.application.vo.admins.AdminsUserPageVO;
import cn.iocoder.mall.user.service.api.UserService; import cn.iocoder.mall.user.api.dto.UserPageDTO;
import cn.iocoder.mall.user.service.api.bo.UserPageBO; import cn.iocoder.mall.user.api.dto.UserUpdateDTO;
import cn.iocoder.mall.user.service.api.dto.UserPageDTO; import cn.iocoder.mall.user.api.UserService;
import cn.iocoder.mall.user.service.api.dto.UserUpdateDTO; import cn.iocoder.mall.user.api.bo.UserPageBO;
import com.alibaba.dubbo.config.annotation.Reference; import com.alibaba.dubbo.config.annotation.Reference;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParam;

View File

@ -3,10 +3,10 @@ package cn.iocoder.mall.user.application.controller.users;
import cn.iocoder.common.framework.vo.CommonResult; import cn.iocoder.common.framework.vo.CommonResult;
import cn.iocoder.mall.user.application.convert.PassportConvert; import cn.iocoder.mall.user.application.convert.PassportConvert;
import cn.iocoder.mall.user.sdk.annotation.PermitAll; import cn.iocoder.mall.user.sdk.annotation.PermitAll;
import cn.iocoder.mall.user.service.api.MobileCodeService; import cn.iocoder.mall.user.api.MobileCodeService;
import cn.iocoder.mall.user.service.api.OAuth2Service; import cn.iocoder.mall.user.api.OAuth2Service;
import cn.iocoder.mall.user.service.api.UserService; import cn.iocoder.mall.user.api.UserService;
import cn.iocoder.mall.user.service.api.bo.OAuth2AccessTokenBO; import cn.iocoder.mall.user.api.bo.OAuth2AccessTokenBO;
import cn.iocoder.mall.user.application.vo.users.MobileRegisterVO; import cn.iocoder.mall.user.application.vo.users.MobileRegisterVO;
import com.alibaba.dubbo.config.annotation.Reference; import com.alibaba.dubbo.config.annotation.Reference;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;

View File

@ -4,10 +4,10 @@ import cn.iocoder.common.framework.vo.CommonResult;
import cn.iocoder.mall.user.application.convert.UserAddressConvert; import cn.iocoder.mall.user.application.convert.UserAddressConvert;
import cn.iocoder.mall.user.application.po.UserAddressAddPO; import cn.iocoder.mall.user.application.po.UserAddressAddPO;
import cn.iocoder.mall.user.application.po.UserAddressUpdatePO; import cn.iocoder.mall.user.application.po.UserAddressUpdatePO;
import cn.iocoder.mall.user.api.dto.UserAddressAddDTO;
import cn.iocoder.mall.user.api.dto.UserAddressUpdateDTO;
import cn.iocoder.mall.user.sdk.context.UserSecurityContextHolder; import cn.iocoder.mall.user.sdk.context.UserSecurityContextHolder;
import cn.iocoder.mall.user.service.api.UserAddressService; import cn.iocoder.mall.user.api.UserAddressService;
import cn.iocoder.mall.user.service.api.dto.UserAddressAddDTO;
import cn.iocoder.mall.user.service.api.dto.UserAddressUpdateDTO;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
@ -37,7 +37,7 @@ public class UserAddressController {
return userAddressService.addAddress(userAddressAddDTO); return userAddressService.addAddress(userAddressAddDTO);
} }
@PostMapping("update") @PutMapping("update")
@ApiOperation(value = "用户地址-更新") @ApiOperation(value = "用户地址-更新")
public CommonResult updateAddress(@RequestBody @Validated UserAddressUpdatePO userAddressUpdatePO) { public CommonResult updateAddress(@RequestBody @Validated UserAddressUpdatePO userAddressUpdatePO) {
Integer userId = UserSecurityContextHolder.getContext().getUserId(); Integer userId = UserSecurityContextHolder.getContext().getUserId();
@ -57,6 +57,6 @@ public class UserAddressController {
@ApiOperation(value = "用户地址列表") @ApiOperation(value = "用户地址列表")
public CommonResult addressList() { public CommonResult addressList() {
Integer userId = UserSecurityContextHolder.getContext().getUserId(); Integer userId = UserSecurityContextHolder.getContext().getUserId();
return userAddressService.addressList(userId); return userAddressService.addressList(1);
} }
} }

View File

@ -2,11 +2,11 @@ package cn.iocoder.mall.user.application.controller.users;
import cn.iocoder.common.framework.vo.CommonResult; import cn.iocoder.common.framework.vo.CommonResult;
import cn.iocoder.mall.user.application.convert.UserConvert; import cn.iocoder.mall.user.application.convert.UserConvert;
import cn.iocoder.mall.user.api.bo.UserBO;
import cn.iocoder.mall.user.api.dto.UserUpdateDTO;
import cn.iocoder.mall.user.sdk.context.UserSecurityContextHolder; import cn.iocoder.mall.user.sdk.context.UserSecurityContextHolder;
import cn.iocoder.mall.user.application.vo.users.UsersUserVO; import cn.iocoder.mall.user.application.vo.users.UsersUserVO;
import cn.iocoder.mall.user.service.api.UserService; import cn.iocoder.mall.user.api.UserService;
import cn.iocoder.mall.user.service.api.bo.UserBO;
import cn.iocoder.mall.user.service.api.dto.UserUpdateDTO;
import com.alibaba.dubbo.config.annotation.Reference; import com.alibaba.dubbo.config.annotation.Reference;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;

View File

@ -1,7 +1,7 @@
package cn.iocoder.mall.user.application.convert; package cn.iocoder.mall.user.application.convert;
import cn.iocoder.common.framework.vo.CommonResult; import cn.iocoder.common.framework.vo.CommonResult;
import cn.iocoder.mall.user.service.api.bo.OAuth2AccessTokenBO; import cn.iocoder.mall.user.api.bo.OAuth2AccessTokenBO;
import cn.iocoder.mall.user.application.vo.users.MobileRegisterVO; import cn.iocoder.mall.user.application.vo.users.MobileRegisterVO;
import org.mapstruct.Mapper; import org.mapstruct.Mapper;
import org.mapstruct.Mappings; import org.mapstruct.Mappings;

View File

@ -2,8 +2,8 @@ package cn.iocoder.mall.user.application.convert;
import cn.iocoder.mall.user.application.po.UserAddressAddPO; import cn.iocoder.mall.user.application.po.UserAddressAddPO;
import cn.iocoder.mall.user.application.po.UserAddressUpdatePO; import cn.iocoder.mall.user.application.po.UserAddressUpdatePO;
import cn.iocoder.mall.user.service.api.dto.UserAddressAddDTO; import cn.iocoder.mall.user.api.dto.UserAddressAddDTO;
import cn.iocoder.mall.user.service.api.dto.UserAddressUpdateDTO; import cn.iocoder.mall.user.api.dto.UserAddressUpdateDTO;
import org.mapstruct.Mapper; import org.mapstruct.Mapper;
import org.mapstruct.Mappings; import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers; import org.mapstruct.factory.Mappers;

View File

@ -3,8 +3,8 @@ package cn.iocoder.mall.user.application.convert;
import cn.iocoder.common.framework.vo.CommonResult; import cn.iocoder.common.framework.vo.CommonResult;
import cn.iocoder.mall.user.application.vo.admins.AdminsUserPageVO; import cn.iocoder.mall.user.application.vo.admins.AdminsUserPageVO;
import cn.iocoder.mall.user.application.vo.users.UsersUserVO; import cn.iocoder.mall.user.application.vo.users.UsersUserVO;
import cn.iocoder.mall.user.service.api.bo.UserBO; import cn.iocoder.mall.user.api.bo.UserBO;
import cn.iocoder.mall.user.service.api.bo.UserPageBO; import cn.iocoder.mall.user.api.bo.UserPageBO;
import org.mapstruct.Mapper; import org.mapstruct.Mapper;
import org.mapstruct.Mappings; import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers; import org.mapstruct.factory.Mappers;

View File

@ -1,8 +1,8 @@
package cn.iocoder.mall.user.sdk.interceptor; package cn.iocoder.mall.user.sdk.interceptor;
import cn.iocoder.common.framework.util.HttpUtil; import cn.iocoder.common.framework.util.HttpUtil;
import cn.iocoder.mall.user.service.api.UserAccessLogService; import cn.iocoder.mall.user.api.UserAccessLogService;
import cn.iocoder.mall.user.service.api.dto.UserAccessLogAddDTO; import cn.iocoder.mall.user.api.dto.UserAccessLogAddDTO;
import com.alibaba.dubbo.config.annotation.Reference; import com.alibaba.dubbo.config.annotation.Reference;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import org.apache.commons.lang3.exception.ExceptionUtils; import org.apache.commons.lang3.exception.ExceptionUtils;

View File

@ -3,11 +3,11 @@ package cn.iocoder.mall.user.sdk.interceptor;
import cn.iocoder.common.framework.exception.ServiceException; import cn.iocoder.common.framework.exception.ServiceException;
import cn.iocoder.common.framework.util.HttpUtil; import cn.iocoder.common.framework.util.HttpUtil;
import cn.iocoder.common.framework.vo.CommonResult; import cn.iocoder.common.framework.vo.CommonResult;
import cn.iocoder.mall.user.api.OAuth2Service;
import cn.iocoder.mall.user.api.bo.OAuth2AuthenticationBO;
import cn.iocoder.mall.user.sdk.annotation.PermitAll; import cn.iocoder.mall.user.sdk.annotation.PermitAll;
import cn.iocoder.mall.user.sdk.context.UserSecurityContext; import cn.iocoder.mall.user.sdk.context.UserSecurityContext;
import cn.iocoder.mall.user.sdk.context.UserSecurityContextHolder; import cn.iocoder.mall.user.sdk.context.UserSecurityContextHolder;
import cn.iocoder.mall.user.service.api.OAuth2Service;
import cn.iocoder.mall.user.service.api.bo.OAuth2AuthenticationBO;
import com.alibaba.dubbo.config.annotation.Reference; import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import org.springframework.web.method.HandlerMethod; import org.springframework.web.method.HandlerMethod;

View File

@ -1,4 +1,4 @@
package cn.iocoder.mall.user.service.api; package cn.iocoder.mall.user.api;
import cn.iocoder.common.framework.exception.ServiceException; import cn.iocoder.common.framework.exception.ServiceException;
import cn.iocoder.common.framework.vo.CommonResult; import cn.iocoder.common.framework.vo.CommonResult;

View File

@ -1,9 +1,9 @@
package cn.iocoder.mall.user.service.api; package cn.iocoder.mall.user.api;
import cn.iocoder.common.framework.vo.CommonResult; import cn.iocoder.common.framework.vo.CommonResult;
import cn.iocoder.mall.user.service.api.bo.OAuth2AccessTokenBO; import cn.iocoder.mall.user.api.bo.OAuth2AccessTokenBO;
import cn.iocoder.mall.user.service.api.bo.OAuth2AuthenticationBO; import cn.iocoder.mall.user.api.bo.OAuth2AuthenticationBO;
public interface OAuth2Service { public interface OAuth2Service {

View File

@ -1,7 +1,7 @@
package cn.iocoder.mall.user.service.api; package cn.iocoder.mall.user.api;
import cn.iocoder.common.framework.vo.CommonResult; import cn.iocoder.common.framework.vo.CommonResult;
import cn.iocoder.mall.user.service.api.dto.UserAccessLogAddDTO; import cn.iocoder.mall.user.api.dto.UserAccessLogAddDTO;
public interface UserAccessLogService { public interface UserAccessLogService {

View File

@ -1,9 +1,9 @@
package cn.iocoder.mall.user.service.api; package cn.iocoder.mall.user.api;
import cn.iocoder.common.framework.vo.CommonResult; import cn.iocoder.common.framework.vo.CommonResult;
import cn.iocoder.mall.user.service.api.bo.UserAddressBO; import cn.iocoder.mall.user.api.bo.UserAddressBO;
import cn.iocoder.mall.user.service.api.dto.UserAddressAddDTO; import cn.iocoder.mall.user.api.dto.UserAddressAddDTO;
import cn.iocoder.mall.user.service.api.dto.UserAddressUpdateDTO; import cn.iocoder.mall.user.api.dto.UserAddressUpdateDTO;
import java.util.List; import java.util.List;

View File

@ -1,10 +1,10 @@
package cn.iocoder.mall.user.service.api; package cn.iocoder.mall.user.api;
import cn.iocoder.common.framework.vo.CommonResult; import cn.iocoder.common.framework.vo.CommonResult;
import cn.iocoder.mall.user.service.api.bo.UserBO; import cn.iocoder.mall.user.api.bo.UserBO;
import cn.iocoder.mall.user.service.api.bo.UserPageBO; import cn.iocoder.mall.user.api.bo.UserPageBO;
import cn.iocoder.mall.user.service.api.dto.UserPageDTO; import cn.iocoder.mall.user.api.dto.UserPageDTO;
import cn.iocoder.mall.user.service.api.dto.UserUpdateDTO; import cn.iocoder.mall.user.api.dto.UserUpdateDTO;
public interface UserService { public interface UserService {

View File

@ -1,4 +1,4 @@
package cn.iocoder.mall.user.service.api.bo; package cn.iocoder.mall.user.api.bo;
import java.io.Serializable; import java.io.Serializable;

View File

@ -1,4 +1,4 @@
package cn.iocoder.mall.user.service.api.bo; package cn.iocoder.mall.user.api.bo;
import java.io.Serializable; import java.io.Serializable;

View File

@ -1,4 +1,4 @@
package cn.iocoder.mall.user.service.api.bo; package cn.iocoder.mall.user.api.bo;
/** /**
* @author Sin * @author Sin

View File

@ -1,4 +1,4 @@
package cn.iocoder.mall.user.service.api.bo; package cn.iocoder.mall.user.api.bo;
import java.io.Serializable; import java.io.Serializable;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package cn.iocoder.mall.user.service.api.bo; package cn.iocoder.mall.user.api.bo;
import java.util.Date; import java.util.Date;

View File

@ -1,4 +1,4 @@
package cn.iocoder.mall.user.service.api.bo; package cn.iocoder.mall.user.api.bo;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package cn.iocoder.mall.user.service.api.constant; package cn.iocoder.mall.user.api.constant;
public class ThirdPlatformConstant { public class ThirdPlatformConstant {

View File

@ -1,4 +1,4 @@
package cn.iocoder.mall.user.service.api.constant; package cn.iocoder.mall.user.api.constant;
public class UserConstants { public class UserConstants {

View File

@ -1,4 +1,4 @@
package cn.iocoder.mall.user.service.api.constant; package cn.iocoder.mall.user.api.constant;
/** /**
* *

View File

@ -1,4 +1,4 @@
package cn.iocoder.mall.user.service.api.dto; package cn.iocoder.mall.user.api.dto;
import javax.validation.constraints.NotNull; import javax.validation.constraints.NotNull;
import java.util.Date; import java.util.Date;

View File

@ -1,4 +1,4 @@
package cn.iocoder.mall.user.service.api.dto; package cn.iocoder.mall.user.api.dto;
import java.io.Serializable; import java.io.Serializable;

View File

@ -1,4 +1,4 @@
package cn.iocoder.mall.user.service.api.dto; package cn.iocoder.mall.user.api.dto;
import java.io.Serializable; import java.io.Serializable;

View File

@ -1,4 +1,4 @@
package cn.iocoder.mall.user.service.api.dto; package cn.iocoder.mall.user.api.dto;
import javax.validation.constraints.NotNull; import javax.validation.constraints.NotNull;

View File

@ -1,4 +1,4 @@
package cn.iocoder.mall.user.service.api.dto; package cn.iocoder.mall.user.api.dto;
/** /**
* DTO * DTO

View File

@ -1,11 +1,11 @@
package cn.iocoder.mall.user.config; package cn.iocoder.mall.user.biz.config;
import org.mybatis.spring.annotation.MapperScan; import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement; import org.springframework.transaction.annotation.EnableTransactionManagement;
@Configuration @Configuration
@MapperScan("cn.iocoder.mall.user.dao") // 扫描对应的 Mapper 接口 @MapperScan("cn.iocoder.mall.user.biz.dao") // 扫描对应的 Mapper 接口
@EnableTransactionManagement(proxyTargetClass = true) // 启动事务管理。为什么使用 proxyTargetClass 参数,参见 https://blog.csdn.net/huang_550/article/details/76492600 @EnableTransactionManagement(proxyTargetClass = true) // 启动事务管理。为什么使用 proxyTargetClass 参数,参见 https://blog.csdn.net/huang_550/article/details/76492600
public class DatabaseConfiguration { public class DatabaseConfiguration {

View File

@ -1,7 +1,7 @@
package cn.iocoder.mall.user.config; package cn.iocoder.mall.user.biz.config;
import cn.iocoder.common.framework.util.ServiceExceptionUtil; import cn.iocoder.common.framework.util.ServiceExceptionUtil;
import cn.iocoder.mall.user.service.api.constant.UserErrorCodeEnum; import cn.iocoder.mall.user.api.constant.UserErrorCodeEnum;
import org.springframework.boot.context.event.ApplicationReadyEvent; import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import org.springframework.context.event.EventListener; import org.springframework.context.event.EventListener;

View File

@ -1,8 +1,8 @@
package cn.iocoder.mall.user.convert; package cn.iocoder.mall.user.biz.convert;
import cn.iocoder.mall.user.dataobject.OAuth2AccessTokenDO; import cn.iocoder.mall.user.biz.dataobject.OAuth2AccessTokenDO;
import cn.iocoder.mall.user.service.api.bo.OAuth2AccessTokenBO; import cn.iocoder.mall.user.api.bo.OAuth2AccessTokenBO;
import cn.iocoder.mall.user.service.api.bo.OAuth2AuthenticationBO; import cn.iocoder.mall.user.api.bo.OAuth2AuthenticationBO;
import org.mapstruct.Mapper; import org.mapstruct.Mapper;
import org.mapstruct.Mapping; import org.mapstruct.Mapping;
import org.mapstruct.Mappings; import org.mapstruct.Mappings;

View File

@ -1,7 +1,7 @@
package cn.iocoder.mall.user.convert; package cn.iocoder.mall.user.biz.convert;
import cn.iocoder.mall.user.dataobject.UserAccessLogDO; import cn.iocoder.mall.user.biz.dataobject.UserAccessLogDO;
import cn.iocoder.mall.user.service.api.dto.UserAccessLogAddDTO; import cn.iocoder.mall.user.api.dto.UserAccessLogAddDTO;
import org.mapstruct.Mapper; import org.mapstruct.Mapper;
import org.mapstruct.Mappings; import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers; import org.mapstruct.factory.Mappers;

View File

@ -1,9 +1,9 @@
package cn.iocoder.mall.user.convert; package cn.iocoder.mall.user.biz.convert;
import cn.iocoder.mall.user.dataobject.UserAddressDO; import cn.iocoder.mall.user.api.bo.UserAddressBO;
import cn.iocoder.mall.user.service.api.bo.UserAddressBO; import cn.iocoder.mall.user.api.dto.UserAddressAddDTO;
import cn.iocoder.mall.user.service.api.dto.UserAddressAddDTO; import cn.iocoder.mall.user.api.dto.UserAddressUpdateDTO;
import cn.iocoder.mall.user.service.api.dto.UserAddressUpdateDTO; import cn.iocoder.mall.user.biz.dataobject.UserAddressDO;
import org.mapstruct.Mapper; import org.mapstruct.Mapper;
import org.mapstruct.Mappings; import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers; import org.mapstruct.factory.Mappers;

View File

@ -1,8 +1,8 @@
package cn.iocoder.mall.user.convert; package cn.iocoder.mall.user.biz.convert;
import cn.iocoder.mall.user.dataobject.UserDO; import cn.iocoder.mall.user.biz.dataobject.UserDO;
import cn.iocoder.mall.user.service.api.bo.UserBO; import cn.iocoder.mall.user.api.bo.UserBO;
import cn.iocoder.mall.user.service.api.dto.UserUpdateDTO; import cn.iocoder.mall.user.api.dto.UserUpdateDTO;
import org.mapstruct.Mapper; import org.mapstruct.Mapper;
import org.mapstruct.Mappings; import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers; import org.mapstruct.factory.Mappers;

View File

@ -1,6 +1,6 @@
package cn.iocoder.mall.user.dao; package cn.iocoder.mall.user.biz.dao;
import cn.iocoder.mall.user.dataobject.MobileCodeDO; import cn.iocoder.mall.user.biz.dataobject.MobileCodeDO;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
@Repository // 实际不加也没问entity就是不想 IDEA 那看到有个报错 @Repository // 实际不加也没问entity就是不想 IDEA 那看到有个报错

View File

@ -1,6 +1,6 @@
package cn.iocoder.mall.user.dao; package cn.iocoder.mall.user.biz.dao;
import cn.iocoder.mall.user.dataobject.OAuth2AccessTokenDO; import cn.iocoder.mall.user.biz.dataobject.OAuth2AccessTokenDO;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;

View File

@ -1,6 +1,6 @@
package cn.iocoder.mall.user.dao; package cn.iocoder.mall.user.biz.dao;
import cn.iocoder.mall.user.dataobject.OAuth2RefreshTokenDO; import cn.iocoder.mall.user.biz.dataobject.OAuth2RefreshTokenDO;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;

View File

@ -1,6 +1,6 @@
package cn.iocoder.mall.user.dao; package cn.iocoder.mall.user.biz.dao;
import cn.iocoder.mall.user.dataobject.UserAccessLogDO; import cn.iocoder.mall.user.biz.dataobject.UserAccessLogDO;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
@Repository @Repository

View File

@ -1,6 +1,6 @@
package cn.iocoder.mall.user.dao; package cn.iocoder.mall.user.biz.dao;
import cn.iocoder.mall.user.dataobject.UserAddressDO; import cn.iocoder.mall.user.biz.dataobject.UserAddressDO;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;

View File

@ -1,6 +1,6 @@
package cn.iocoder.mall.user.dao; package cn.iocoder.mall.user.biz.dao;
import cn.iocoder.mall.user.dataobject.UserDO; import cn.iocoder.mall.user.biz.dataobject.UserDO;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;

View File

@ -1,6 +1,6 @@
package cn.iocoder.mall.user.dao; package cn.iocoder.mall.user.biz.dao;
import cn.iocoder.mall.user.dataobject.UserRegisterDO; import cn.iocoder.mall.user.biz.dataobject.UserRegisterDO;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
@Repository @Repository

View File

@ -1,4 +1,4 @@
package cn.iocoder.mall.user.dataobject; package cn.iocoder.mall.user.biz.dataobject;
import java.util.Date; import java.util.Date;

View File

@ -1,4 +1,4 @@
package cn.iocoder.mall.user.dataobject; package cn.iocoder.mall.user.biz.dataobject;
import java.util.Date; import java.util.Date;

View File

@ -1,4 +1,4 @@
package cn.iocoder.mall.user.dataobject; package cn.iocoder.mall.user.biz.dataobject;
import java.util.Date; import java.util.Date;

View File

@ -1,4 +1,4 @@
package cn.iocoder.mall.user.dataobject; package cn.iocoder.mall.user.biz.dataobject;
import cn.iocoder.common.framework.dataobject.DeletableDO; import cn.iocoder.common.framework.dataobject.DeletableDO;

View File

@ -1,4 +1,4 @@
package cn.iocoder.mall.user.dataobject; package cn.iocoder.mall.user.biz.dataobject;
import cn.iocoder.common.framework.dataobject.DeletableDO; import cn.iocoder.common.framework.dataobject.DeletableDO;

View File

@ -1,4 +1,4 @@
package cn.iocoder.mall.user.dataobject; package cn.iocoder.mall.user.biz.dataobject;
import cn.iocoder.common.framework.dataobject.DeletableDO; import cn.iocoder.common.framework.dataobject.DeletableDO;

View File

@ -0,0 +1,4 @@
package cn.iocoder.mall.user.biz.dataobject;
public class UserLoginLogDO {
}

View File

@ -1,4 +1,4 @@
package cn.iocoder.mall.user.dataobject; package cn.iocoder.mall.user.biz.dataobject;
import java.util.Date; import java.util.Date;

View File

@ -1,4 +1,4 @@
package cn.iocoder.mall.user.dataobject; package cn.iocoder.mall.user.biz.dataobject;
import java.util.Date; import java.util.Date;
@ -23,7 +23,7 @@ public class UserThirdAuthDO {
/** /**
* *
* *
* @see cn.iocoder.mall.user.constant.ThirdPlatformConstant * @see cn.iocoder.mall.user.api.constant.ThirdPlatformConstant
*/ */
private Integer platform; private Integer platform;
/** /**

View File

@ -0,0 +1 @@
package cn.iocoder.mall.user.biz;

View File

@ -1,13 +1,13 @@
package cn.iocoder.mall.user.service; package cn.iocoder.mall.user.biz.service;
import cn.iocoder.common.framework.constant.SysErrorCodeEnum; import cn.iocoder.common.framework.constant.SysErrorCodeEnum;
import cn.iocoder.common.framework.util.ServiceExceptionUtil; import cn.iocoder.common.framework.util.ServiceExceptionUtil;
import cn.iocoder.common.framework.util.ValidationUtil; import cn.iocoder.common.framework.util.ValidationUtil;
import cn.iocoder.common.framework.vo.CommonResult; import cn.iocoder.common.framework.vo.CommonResult;
import cn.iocoder.mall.user.dao.MobileCodeMapper; import cn.iocoder.mall.user.biz.dao.MobileCodeMapper;
import cn.iocoder.mall.user.dataobject.MobileCodeDO; import cn.iocoder.mall.user.biz.dataobject.MobileCodeDO;
import cn.iocoder.mall.user.service.api.MobileCodeService; import cn.iocoder.mall.user.api.MobileCodeService;
import cn.iocoder.mall.user.service.api.constant.UserErrorCodeEnum; import cn.iocoder.mall.user.api.constant.UserErrorCodeEnum;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;

View File

@ -1,19 +1,19 @@
package cn.iocoder.mall.user.service; package cn.iocoder.mall.user.biz.service;
import cn.iocoder.common.framework.exception.ServiceException; import cn.iocoder.common.framework.exception.ServiceException;
import cn.iocoder.common.framework.util.ServiceExceptionUtil; import cn.iocoder.common.framework.util.ServiceExceptionUtil;
import cn.iocoder.common.framework.vo.CommonResult; import cn.iocoder.common.framework.vo.CommonResult;
import cn.iocoder.mall.user.convert.OAuth2Convert; import cn.iocoder.mall.user.biz.dao.OAuth2AccessTokenMapper;
import cn.iocoder.mall.user.dao.OAuth2AccessTokenMapper; import cn.iocoder.mall.user.biz.dao.OAuth2RefreshTokenMapper;
import cn.iocoder.mall.user.dao.OAuth2RefreshTokenMapper; import cn.iocoder.mall.user.biz.dataobject.MobileCodeDO;
import cn.iocoder.mall.user.dataobject.MobileCodeDO; import cn.iocoder.mall.user.biz.dataobject.OAuth2AccessTokenDO;
import cn.iocoder.mall.user.dataobject.OAuth2AccessTokenDO; import cn.iocoder.mall.user.biz.dataobject.OAuth2RefreshTokenDO;
import cn.iocoder.mall.user.dataobject.OAuth2RefreshTokenDO; import cn.iocoder.mall.user.biz.dataobject.UserDO;
import cn.iocoder.mall.user.dataobject.UserDO; import cn.iocoder.mall.user.api.OAuth2Service;
import cn.iocoder.mall.user.service.api.OAuth2Service; import cn.iocoder.mall.user.api.bo.OAuth2AccessTokenBO;
import cn.iocoder.mall.user.service.api.constant.UserErrorCodeEnum; import cn.iocoder.mall.user.api.bo.OAuth2AuthenticationBO;
import cn.iocoder.mall.user.service.api.bo.OAuth2AccessTokenBO; import cn.iocoder.mall.user.api.constant.UserErrorCodeEnum;
import cn.iocoder.mall.user.service.api.bo.OAuth2AuthenticationBO; import cn.iocoder.mall.user.biz.convert.OAuth2Convert;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;

View File

@ -1,12 +1,12 @@
package cn.iocoder.mall.user.service; package cn.iocoder.mall.user.biz.service;
import cn.iocoder.common.framework.util.StringUtil; import cn.iocoder.common.framework.util.StringUtil;
import cn.iocoder.common.framework.vo.CommonResult; import cn.iocoder.common.framework.vo.CommonResult;
import cn.iocoder.mall.user.convert.UserAccessLogConvert; import cn.iocoder.mall.user.biz.dao.UserAccessLogMapper;
import cn.iocoder.mall.user.dao.UserAccessLogMapper; import cn.iocoder.mall.user.biz.dataobject.UserAccessLogDO;
import cn.iocoder.mall.user.dataobject.UserAccessLogDO; import cn.iocoder.mall.user.api.UserAccessLogService;
import cn.iocoder.mall.user.service.api.UserAccessLogService; import cn.iocoder.mall.user.api.dto.UserAccessLogAddDTO;
import cn.iocoder.mall.user.service.api.dto.UserAccessLogAddDTO; import cn.iocoder.mall.user.biz.convert.UserAccessLogConvert;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;

View File

@ -1,16 +1,16 @@
package cn.iocoder.mall.user.service; package cn.iocoder.mall.user.biz.service;
import cn.iocoder.common.framework.constant.DeletedStatusEnum; import cn.iocoder.common.framework.constant.DeletedStatusEnum;
import cn.iocoder.common.framework.util.ServiceExceptionUtil; import cn.iocoder.common.framework.util.ServiceExceptionUtil;
import cn.iocoder.common.framework.vo.CommonResult; import cn.iocoder.common.framework.vo.CommonResult;
import cn.iocoder.mall.user.convert.UserAddressConvert; import cn.iocoder.mall.user.api.constant.UserErrorCodeEnum;
import cn.iocoder.mall.user.dao.UserAddressMapper; import cn.iocoder.mall.user.biz.convert.UserAddressConvert;
import cn.iocoder.mall.user.dataobject.UserAddressDO; import cn.iocoder.mall.user.biz.dao.UserAddressMapper;
import cn.iocoder.mall.user.service.api.UserAddressService; import cn.iocoder.mall.user.biz.dataobject.UserAddressDO;
import cn.iocoder.mall.user.service.api.bo.UserAddressBO; import cn.iocoder.mall.user.api.UserAddressService;
import cn.iocoder.mall.user.service.api.constant.UserErrorCodeEnum; import cn.iocoder.mall.user.api.bo.UserAddressBO;
import cn.iocoder.mall.user.service.api.dto.UserAddressAddDTO; import cn.iocoder.mall.user.api.dto.UserAddressAddDTO;
import cn.iocoder.mall.user.service.api.dto.UserAddressUpdateDTO; import cn.iocoder.mall.user.api.dto.UserAddressUpdateDTO;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;

View File

@ -1,22 +1,22 @@
package cn.iocoder.mall.user.service; package cn.iocoder.mall.user.biz.service;
import cn.iocoder.common.framework.constant.DeletedStatusEnum; import cn.iocoder.common.framework.constant.DeletedStatusEnum;
import cn.iocoder.common.framework.constant.SysErrorCodeEnum; import cn.iocoder.common.framework.constant.SysErrorCodeEnum;
import cn.iocoder.common.framework.util.ServiceExceptionUtil; import cn.iocoder.common.framework.util.ServiceExceptionUtil;
import cn.iocoder.common.framework.util.ValidationUtil; import cn.iocoder.common.framework.util.ValidationUtil;
import cn.iocoder.common.framework.vo.CommonResult; import cn.iocoder.common.framework.vo.CommonResult;
import cn.iocoder.mall.user.convert.UserConvert; import cn.iocoder.mall.user.biz.dao.UserMapper;
import cn.iocoder.mall.user.dao.UserMapper; import cn.iocoder.mall.user.biz.dao.UserRegisterMapper;
import cn.iocoder.mall.user.dao.UserRegisterMapper; import cn.iocoder.mall.user.biz.dataobject.UserDO;
import cn.iocoder.mall.user.dataobject.UserDO; import cn.iocoder.mall.user.biz.dataobject.UserRegisterDO;
import cn.iocoder.mall.user.dataobject.UserRegisterDO; import cn.iocoder.mall.user.api.UserService;
import cn.iocoder.mall.user.service.api.UserService; import cn.iocoder.mall.user.api.bo.UserBO;
import cn.iocoder.mall.user.service.api.bo.UserBO; import cn.iocoder.mall.user.api.bo.UserPageBO;
import cn.iocoder.mall.user.service.api.bo.UserPageBO; import cn.iocoder.mall.user.api.constant.UserConstants;
import cn.iocoder.mall.user.service.api.constant.UserConstants; import cn.iocoder.mall.user.api.constant.UserErrorCodeEnum;
import cn.iocoder.mall.user.service.api.constant.UserErrorCodeEnum; import cn.iocoder.mall.user.api.dto.UserPageDTO;
import cn.iocoder.mall.user.service.api.dto.UserPageDTO; import cn.iocoder.mall.user.api.dto.UserUpdateDTO;
import cn.iocoder.mall.user.service.api.dto.UserUpdateDTO; import cn.iocoder.mall.user.biz.convert.UserConvert;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;

View File

@ -1,4 +0,0 @@
package cn.iocoder.mall.user.dataobject;
public class UserLoginLogDO {
}

View File

@ -1 +0,0 @@
package cn.iocoder.mall.user;

View File

@ -10,7 +10,7 @@ spring:
mybatis: mybatis:
config-location: classpath:mybatis-config.xml config-location: classpath:mybatis-config.xml
mapper-locations: classpath:mapper/*.xml mapper-locations: classpath:mapper/*.xml
type-aliases-package: cn.iocoder.mall.user.dataobject type-aliases-package: cn.iocoder.mall.user.biz.dataobject
# dubbo # dubbo
dubbo: dubbo:
@ -22,7 +22,7 @@ dubbo:
port: -1 port: -1
name: dubbo name: dubbo
scan: scan:
base-packages: cn.iocoder.mall.user.service base-packages: cn.iocoder.mall.user.biz.service
demo: demo:
service: service:
version: 1.0.0 version: 1.0.0

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?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"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.iocoder.mall.user.dao.MobileCodeMapper"> <mapper namespace="cn.iocoder.mall.user.biz.dao.MobileCodeMapper">
<insert id="insert" parameterType="MobileCodeDO"> <insert id="insert" parameterType="MobileCodeDO">
INSERT INTO mobile_code ( INSERT INTO mobile_code (

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?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"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.iocoder.mall.user.dao.OAuth2AccessTokenMapper"> <mapper namespace="cn.iocoder.mall.user.biz.dao.OAuth2AccessTokenMapper">
<insert id="insert" parameterType="OAuth2AccessTokenDO"> <insert id="insert" parameterType="OAuth2AccessTokenDO">
INSERT INTO oauth2_access_token ( INSERT INTO oauth2_access_token (

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?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"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.iocoder.mall.user.dao.OAuth2RefreshTokenMapper"> <mapper namespace="cn.iocoder.mall.user.biz.dao.OAuth2RefreshTokenMapper">
<insert id="insert" parameterType="OAuth2RefreshTokenDO"> <insert id="insert" parameterType="OAuth2RefreshTokenDO">
INSERT INTO oauth2_refresh_token ( INSERT INTO oauth2_refresh_token (

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?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"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.iocoder.mall.user.dao.UserAccessLogMapper"> <mapper namespace="cn.iocoder.mall.user.biz.dao.UserAccessLogMapper">
<!--<sql id="FIELDS">--> <!--<sql id="FIELDS">-->
<!--id, username, nickname, password, status,--> <!--id, username, nickname, password, status,-->

View File

@ -1,47 +1,47 @@
<?xml version="1.0" encoding="UTF-8"?> <?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"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.iocoder.mall.user.dao.UserAddressMapper"> <mapper namespace="cn.iocoder.mall.user.biz.dao.UserAddressMapper">
<sql id="FIELDS"> <sql id="FIELDS">
id, user_id, areaNo, `name`, mobile, address, id, user_id, area_no, `name`, mobile, address,
create_time, update_time, deleted create_time, update_time, deleted
</sql> </sql>
<insert id="insert" parameterType="UserAddressDO" useGeneratedKeys="true" keyProperty="id"> <insert id="insert" parameterType="UserAddressDO" useGeneratedKeys="true" keyProperty="id">
INSERT INTO user_address ( INSERT INTO user_address (
user_id, areaNo, `name`, mobile, address user_id, area_no, `name`, mobile, address
) VALUES ( ) VALUES (
#{userId}, #{areaNo}, #{name}, #{mobile}, #{address}, #{userId}, #{areaNo}, #{name}, #{mobile}, #{address},
#{createTime}, #{updateTime}, #{deleted} #{createTime}, #{updateTime}, #{deleted}
) )
</insert> </insert>
<update id="updateById" resultType="Integer"> <update id="updateById">
UPDATE user_address UPDATE user_address
<set> <set>
<if test="area_no != null"> <if test="userAddressDO.areaNo != null">
, area_no = #{areaNo} , area_no = #{userAddressDO.areaNo}
</if> </if>
<if test="name != null"> <if test="userAddressDO.name != null">
, `name` = #{name} , `name` = #{userAddressDO.name}
</if> </if>
<if test="mobile != null"> <if test="userAddressDO.mobile != null">
, mobile = #{mobile} , mobile = #{userAddressDO.mobile}
</if> </if>
<if test="address != null"> <if test="userAddressDO.address != null">
, address = #{address} , address = #{userAddressDO.address}
</if> </if>
<if test="updateTime != null"> <if test="userAddressDO.updateTime != null">
, update_time = #{updateTime} , update_time = #{userAddressDO.updateTime}
</if> </if>
<if test="deleted != null"> <if test="userAddressDO.deleted != null">
, deleted = #{deleted} , deleted = #{userAddressDO.deleted}
</if> </if>
</set> </set>
WHERE id = #{id} WHERE id = #{id}
</update> </update>
<select id="selectByUserIdAndId" resultType="cn.iocoder.mall.user.dataobject.UserAddressDO"> <select id="selectByUserIdAndId" resultType="cn.iocoder.mall.user.biz.dataobject.UserAddressDO">
SELECT SELECT
<include refid="FIELDS" /> <include refid="FIELDS" />
FROM user_address FROM user_address
@ -49,7 +49,7 @@
AND id = #{id} AND id = #{id}
</select> </select>
<select id="selectByUserIdAndDeleted" resultType="cn.iocoder.mall.user.dataobject.UserAddressDO"> <select id="selectByUserIdAndDeleted" resultType="cn.iocoder.mall.user.biz.dataobject.UserAddressDO">
SELECT SELECT
<include refid="FIELDS" /> <include refid="FIELDS" />
FROM user_address FROM user_address

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?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"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.iocoder.mall.user.dao.UserMapper"> <mapper namespace="cn.iocoder.mall.user.biz.dao.UserMapper">
<sql id="FIELDS"> <sql id="FIELDS">
id, mobile, nickname, avatar, status, id, mobile, nickname, avatar, status,

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?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"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.iocoder.mall.user.dao.UserRegisterMapper"> <mapper namespace="cn.iocoder.mall.user.biz.dao.UserRegisterMapper">
<insert id="insert" parameterType="UserRegisterDO"> <insert id="insert" parameterType="UserRegisterDO">
INSERT INTO user_register ( INSERT INTO user_register (