1.短信功能调整

2.接口返回信息调整
This commit is contained in:
2023-08-28 10:50:28 +08:00
parent ff178a3ee5
commit e84b6d6698
7 changed files with 244 additions and 126 deletions

View File

@@ -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;
}

View File

@@ -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", "该账号已注册"),