Air
2024-11-04 cb3b3801255082c53145bd752230339eae5d3e5a
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
package com.nova.sankuai.domain.vo.channel;
 
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.nova.sankuai.domain.entity.ChannelInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.BeanUtils;
 
import java.util.Date;
 
/**
 * @author weikangdi 2022/4/21
 */
@Data
@ApiModel(value = "渠道信息Vo")
public class ChannelInfoVo {
 
    @ApiModelProperty(value = "渠道Id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;
 
    @ApiModelProperty(value = "分发给其他平台的渠道id")
    private String appId;
 
    @ApiModelProperty(value = "渠道(其他平台)名称")
    private String name;
 
    @ApiModelProperty(value = "渠道类型 0-进口 1-出口")
    private Integer type;
 
    @ApiModelProperty(value = "渠道编码(参考SourceTypeEnum定义)")
    private Integer code;
 
    @ApiModelProperty(value = "贷超工作流开关 0-禁用 1-启用")
    private Integer loanMarketOnly;
 
    @ApiModelProperty(value = "2.0开关")
    private Integer version2IsOpen;
 
    @ApiModelProperty(value = "2.0子参数, 1为线上放款,0为银行直贷")
    private Integer version2Type;
 
    @ApiModelProperty(value = "安卓下载链接")
    private String androidLink;
 
    @ApiModelProperty(value = "IOS下载链接")
    private String iosLink;
 
    @ApiModelProperty(value = "会员折扣金额")
    private Integer memberDiscount;
 
    @ApiModelProperty(value = "额度审批时间")
    private Integer quotaApprovalTime;
 
    @ApiModelProperty(value = "默认会员权益")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String defaultCardId;
 
    @ApiModelProperty(value = "落地页安卓下载链接")
    private String loadAndroidLink;
 
    @ApiModelProperty(value = "落地页ios下载链接")
    private String loadIosLink;
 
    @ApiModelProperty(value = "第三方渠道唯一标识")
    private String thirdChannelCode;
 
    @ApiModelProperty(value = "3.0流程开关")
    private Integer version3IsOpen;
 
    @ApiModelProperty(value = "创建时间")
    private Date creationDate;
 
    @ApiModelProperty(value = "贷超直链开关")
    private Integer loanMarketHotLinkSwitch;
 
    @ApiModelProperty(value = "贷超直链产品id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long loanMarketHotLinkId;
 
    @ApiModelProperty(value = "审批加速包会员开关 0-关闭 1-开启")
    private Integer queueVipSwitch;
 
    @ApiModelProperty(value = "单页面H5开关")
    private Integer h5PageSwitch;
 
    @ApiModelProperty(value = "4.0流程开关 0为关,1为开")
    private Integer version4IsOpen;
 
    @ApiModelProperty(value = "0加速包 1贷超模式")
    private Integer vipMode;
 
    @ApiModelProperty(value = "0落地页 1:H5/APP")
    private Integer linkMode;
 
    // 于2022-11-15新增:直接放款
    @ApiModelProperty(value = "直接放款开关 0为关,1为开")
    private Integer directLoanIsOpen;
 
    @ApiModelProperty(value = "会员开关 0是关闭  1是打开")
    private Integer vipSwitch;
 
    @ApiModelProperty(value = "是否打开银行卡界面 1是 0否")
    private Integer bankCardIsOpen;
 
    @ApiModelProperty(value = "是否打开旧的放款进度页 1是 0否")
    private Integer loanProgressOld;
 
    @ApiModelProperty(value = "大额H5和单页面H5开关,0下载APP,1贷超,2通知页")
    private Integer dhSwitch;
 
    @ApiModelProperty(value = "用信过程,0关闭,1开启")
    private Integer yongxinIsOpen;
 
    @ApiModelProperty(value = "联登开关 0关闭 1开启")
    private Integer lianDeng;
 
    // ab新增于2024-10-16
    @ApiModelProperty(value = "H5匹配资金方 1开启 0关")
    private Integer h5Match;
 
    public static ChannelInfoVo parseVo(ChannelInfo channelInfo) {
        ChannelInfoVo channelConfigVo = new ChannelInfoVo();
        BeanUtils.copyProperties(channelInfo, channelConfigVo);
        return channelConfigVo;
    }
}