ChannelAccountMap.java 1.95 KB
Newer Older
shenggui.li committed
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
package com.reyun.model;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

/**
 * Created by sunhao on 17/7/26.
 * desc:子账号备注对应关系
 */
@Entity
public class ChannelAccountMap {

    private Long id;
    //主账号
    private Long rootAccount;
    //子账号
    private Long subAccount;
    //渠道账号ID
    private Long channelAccount;
    //备注
    private String remark;
    //状态
    private Boolean status;

    private Boolean authConfig;


    public ChannelAccountMap(){}

    public ChannelAccountMap(Long rootAccount, Long subAccount, Long channelAccount, String remark, Boolean status){
        this.rootAccount = rootAccount;
        this.subAccount = subAccount;
        this.channelAccount = channelAccount;
        this.remark = remark;
        this.status = status;
    }

    @Id
    @GeneratedValue
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getRootAccount() {
        return rootAccount;
    }

    public void setRootAccount(Long rootAccount) {
        this.rootAccount = rootAccount;
    }

    public Long getSubAccount() {
        return subAccount;
    }

    public void setSubAccount(Long subAccount) {
        this.subAccount = subAccount;
    }

    public Long getChannelAccount() {
        return channelAccount;
    }

    public void setChannelAccount(Long channelAccount) {
        this.channelAccount = channelAccount;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }

    public Boolean getAuthConfig()
    {
        return authConfig;
    }

    public void setAuthConfig(Boolean authConfig)
    {
        this.authConfig = authConfig;
    }
}