1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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;
    }
}