package com.ibeetl.admin.console.web.mo;

import static com.ibeetl.admin.core.util.enums.ElColumnType.DATE;
import static com.ibeetl.admin.core.util.enums.ElColumnType.DICT;
import static com.ibeetl.admin.core.util.enums.ElColumnType.OTHER;
import static com.ibeetl.admin.core.util.enums.ElColumnType.STRING;

import com.ibeetl.admin.core.annotation.ElColumn;
import java.util.Date;
import lombok.Data;

/**
 * Class CoreUserElMetadata : <br> 描述：用户管理页面的metadata元数据
 *
 * @author 一日看尽长安花 Created on 2019/12/29
 */
@Data
public class CoreUserElMetadata {

  @ElColumn(
      name = "ID",
      type = STRING,
      isShowSearchPanel = false,
      isShowTablePanel = false,
      isShowEditorPanel = false,
      order = 1)
  protected Long id;

  @ElColumn(name = "创建时间", type = DATE, isShowEditorPanel = false, order = 8)
  protected Date createTime;

  @ElColumn(name = "用户名", type = STRING, isShowSearchPanel = false, order = 2)
  private String code;

  @ElColumn(name = "姓名", type = STRING, order = 3)
  private String name;

  @ElColumn(
      name = "机构",
      type = STRING,
      jsonPath = "org.name",
      isShowSearchPanel = false,
      isShowEditorPanel = false, order = 4)
  private Long orgId;

  @ElColumn(name = "状态", type = DICT, dictType = "user_state", isShowEditorPanel = false, order = 7)
  private String state;

  @ElColumn(name = "职务", type = OTHER, isShowEditorPanel = false, order = 5)
  private String jobType0;

  @ElColumn(name = "岗位", type = DICT, dictType = "job_type", isShowEditorPanel = false, order = 6)
  private String jobType1;

}
