All Downloads are FREE. Search and download functionalities are using the official Maven repository.

k.e.book.ddh.entity.CcAuthRuleDO Maven / Gradle / Ivy


package k.e.book.ddh.entity;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.beans.BeanUtils;
import java.io.Serializable;
import java.util.Date;
/**
 * @author kk
 * @date 2023-05-21 11:01
 */
@EqualsAndHashCode(callSuper = false)
@Data
@TableName("cc_auth_rule")
@ApiModel(value="CcAuthRuleDO", description="CcAuthRule")
public class CcAuthRuleDO extends Model  {
    private static final long serialVersionUID = 1L;


    @TableId(value = "id", type = IdType.AUTO)
    private Long id;


    /**
     * menu为菜单,file为权限节点
     */
    @TableField("type")
    private String type;
    /**
     * 父ID
     */
    @TableField("pid")
    private Integer pid;
    /**
     * 规则名称
     */
    @TableField("name")
    private String name;
    /**
     * 规则名称
     */
    @TableField("title")
    private String title;
    /**
     * 图标
     */
    @TableField("icon")
    private String icon;
    /**
     * 规则URL
     */
    @TableField("url")
    private String url;
    /**
     * 条件
     */
    @TableField("condition")
    private String condition;
    /**
     * 备注
     */
    @TableField("remark")
    private String remark;
    /**
     * 是否为菜单
     */
    @TableField("ismenu")
    private Integer ismenu;
    /**
     * 菜单类型
     */
    @TableField("menutype")
    private String menutype;
    /**
     * 扩展属性
     */
    @TableField("extend")
    private String extend;
    /**
     * 拼音首字母
     */
    @TableField("py")
    private String py;
    /**
     * 拼音
     */
    @TableField("pinyin")
    private String pinyin;
    /**
     * 创建时间
     */
    @TableField("createtime")
    private Long createtime;
    /**
     * 更新时间
     */
    @TableField("updatetime")
    private Long updatetime;
    /**
     * 权重
     */
    @TableField("weigh")
    private Integer weigh;
    /**
     * 状态
     */
    @TableField("status")
    private String status;

    public static CcAuthRuleVO toVO(CcAuthRuleDO ccAuthRuleDO) {
        if(ccAuthRuleDO == null){
            return null;
        }
        CcAuthRuleVO ccAuthRuleVO = new CcAuthRuleVO();
        BeanUtils.copyProperties(ccAuthRuleDO, ccAuthRuleVO);
        return ccAuthRuleVO;
    }

    public static CcAuthRuleDO toDO(CcAuthRuleAddDTO ccAuthRuleAddDTO) {
        if (ccAuthRuleAddDTO == null) {
            return null;
        }
        CcAuthRuleDO ccAuthRuleDO = new CcAuthRuleDO();
        BeanUtils.copyProperties(ccAuthRuleAddDTO, ccAuthRuleDO);
        return ccAuthRuleDO;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy