package com.ruoyi.user.config;
|
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
import org.springframework.stereotype.Component;
|
|
/**
|
* 测试便利配置:通用推荐码
|
*
|
* 对应 nacos `ruoyi-user-dev.yml` 中 `hugray.user.*`;
|
* 配置为空即关闭该能力(生产环境不配置即为关闭态)。
|
*
|
* @author hugray
|
*/
|
@Component
|
@ConfigurationProperties(prefix = "hugray.user")
|
public class UniversalCodeProperties
|
{
|
/** 通用推荐码:非空时,注册使用该码跳过推荐人查询与校验,且不绑定推荐人 */
|
private String universalReferralCode;
|
|
public String getUniversalReferralCode()
|
{
|
return universalReferralCode;
|
}
|
|
public void setUniversalReferralCode(String universalReferralCode)
|
{
|
this.universalReferralCode = universalReferralCode;
|
}
|
}
|