package com.ruoyi.platform.domain;

import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
public class CodeConfig implements Serializable {


    private Long id;

    @ApiModelProperty(name = "code_repo_name",value = "代码仓库名称")
    private String codeRepoName;

    @ApiModelProperty(name = "code_repo_vis", value = "代码仓库可见性(1-公开，0-私有)")
    private Integer codeRepoVis;

    @ApiModelProperty(name = "is_public", value = "1-公开，0-私有)")
    private Boolean isPublic;

    @ApiModelProperty(name = "git_url", value = "Git地址")
    private String gitUrl;

    @ApiModelProperty(name = "git_branch", value = "代码分支/Tag")
    private String gitBranch;

    @ApiModelProperty(name = "verify_mode", value = "验证方式(0-用户名密码，1-SSH-Key)")
    private Integer verifyMode;

    @ApiModelProperty(name = "git_user_name", value = "Git用户名")
    private String gitUserName;

    @ApiModelProperty(name = "git_password", value = "Git密码")
    private String gitPassword;

    @ApiModelProperty(name = "ssh_key",value = "SSH Key")
    private String sshKey;

    @ApiModelProperty(name = "create_by", value = "创建者")
    private String createBy;

    @ApiModelProperty(name = "create_time", value = "创建时间")
    private Date createTime;

    @ApiModelProperty(name = "update_by", value = "更新者")
    private String updateBy;

    @ApiModelProperty(name = "update_time", value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(name = "state", value = "状态，0失效1生效")
    private Integer state;

}
