package cn.axzo.msg.center.domain.entity;


import cn.axzo.msg.center.api.enums.ReceiveTypeEnum;
import cn.axzo.msg.center.domain.enums.ModuleBizTypeEnum;
import cn.axzo.msg.center.domain.persistence.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 消息模块(MessageModule)实体类
 *
 * @author makejava
 * @since 2022-03-28 14:59:16
 */
@TableName("message_module")
@Data
@Accessors(chain = true)
public class MessageModule extends BaseEntity<MessageModule> {

  /**
   * 模块名称
   */
  private String moduleName;
  /**
   * 模块图标
   */
  private String icon;
  /**
   * 模块描述
   */
  private String remark;
  /**
   * 所属角色：cm_leader、cm_worker、cmp
   */
  private ReceiveTypeEnum ownedType;

  /**
   * 业务分类 1 施工, 2 交易
   */
  private ModuleBizTypeEnum bizType;

  public void setOwnedType(Integer ownedType) {
    this.ownedType = ReceiveTypeEnum.valueOf(ownedType);
  }

  public void setBizType(Integer bizType) {
    this.bizType = ModuleBizTypeEnum.valueOf(bizType);
  }
}

