package com.openhis.web.document.dto;


import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
public class DocTemplateDto {

    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 模板名称
     */
    private String name;
    /**
     * 排序
     */
    private Integer displayOrder;
    /**
     * 模板内容
     */
    private String contextJson;

    /**
     * 文书定义ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long definitionId;

    /**
     * 使用范围 0-全院 1-指定机构 2-指定用户
     */
    private Integer useRange;
    /**
     * 当useRange=1时，指定机构ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long organizationId;
    /**
     * 当useRange=2时，指定用户ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;
    /**
     * 备注
     */
    private String remark;
}
