| | |
| | | package com.moral.api.pojo.form.account; |
| | | |
| | | import com.moral.api.entity.ManageAccount; |
| | | import com.moral.api.pojo.dto.account.AccountInsertDTO; |
| | | import com.moral.api.pojo.dto.account.AccountDTO; |
| | | import com.moral.constant.ResponseCodeEnum; |
| | | import com.moral.util.AESUtils; |
| | | import com.moral.util.MD5Utils; |
| | | import com.moral.util.RegexUtils; |
| | | import lombok.Data; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.util.ObjectUtils; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | return true; |
| | | } |
| | | |
| | | public AccountInsertDTO paramValid(){ |
| | | AccountInsertDTO dto = new AccountInsertDTO(); |
| | | public AccountDTO paramValid(){ |
| | | AccountDTO dto = new AccountDTO(); |
| | | //判断用户名是否符合条件 |
| | | if(!RegexUtils.checkAccount(account)){ |
| | | dto.setCode(ResponseCodeEnum.ACCOUNT_INVALID.getCode()); |