1.短信功能调整
2.接口返回信息调整
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
package com.njcn.user.config;
|
||||
|
||||
import lombok.Data;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.core.annotation.Order;
|
||||
|
||||
/**
|
||||
* 类的介绍:短信配置获取实体
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2023/8/25 15:19
|
||||
*/
|
||||
@Data
|
||||
@Configuration
|
||||
@Order(10)
|
||||
public class Message {
|
||||
|
||||
/**
|
||||
* accessKeyId
|
||||
*/
|
||||
@Value("${message.access-key}")
|
||||
private String accessKeyId;
|
||||
|
||||
/**
|
||||
* accessKeySecret
|
||||
*/
|
||||
@Value("${message.secret-key}")
|
||||
private String accessKeySecret;
|
||||
|
||||
/**
|
||||
* 短信签名
|
||||
*/
|
||||
@Value("${message.auto-graph}")
|
||||
private String autoGraph;
|
||||
|
||||
/**
|
||||
* 连接时间参数
|
||||
*/
|
||||
@Value("${message.connect-time}")
|
||||
private String time;
|
||||
|
||||
}
|
||||
@@ -51,6 +51,7 @@ public enum UserResponseEnum {
|
||||
APP_PASSWORD("A0101", "密码长度为8-16"),
|
||||
REPEAT_PASSWORD("A0101", "新密码与旧密码不能一致"),
|
||||
|
||||
MESSAGE_SEND_FAIL("A0102", "短信发送失败"),
|
||||
REGISTER_FAIL("A0102", "注册失败"),
|
||||
REGISTER_PHONE_FAIL("A0102", "该号码已注册,请检查phone字段"),
|
||||
REGISTER_LOGIN_NAME_FAIL("A0102", "该账号已注册"),
|
||||
|
||||
Reference in New Issue
Block a user