package com.yunzhupaas.base.model.commonword;


import io.swagger.v3.oas.annotations.media.Schema;
import com.yunzhupaas.util.StringUtil;
import lombok.Data;

import java.util.List;

/**
 * 类功能
 *
 * @author 云筑产品开发平台组
 * @version v3.4.6
 * @copyrignt 深圳市乐程软件有限公司
 * @date 2023-01-07
 */
@Data
@Schema(description = "CommonWordsForm对象", name = "审批常用语表单对象")
public class CommonWordsForm {

    @Schema(description = "常用语Id")
    private String id;
    @Schema(description = "常用语类型(0:系统,1:个人)")
    private Integer commonWordsType;
    @Schema(description = "常用语")
    private String commonWordsText;
    @Schema(description = "应用id集合")
    private List<String> systemIds;
    @Schema(description = "排序")
    private Long sortCode;
    @Schema(description = "有效标志")
    private Integer enabledMark;

    public String getSystemIds() {
        return StringUtil.join(this.systemIds, ",");
    }

}

