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

k.e.book.ddh.entity.CcUserRuleDO 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_user_rule")
@ApiModel(value="CcUserRuleDO", description="CcUserRule")
public class CcUserRuleDO extends Model  {
    private static final long serialVersionUID = 1L;


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


    /**
     * 父ID
     */
    @TableField("pid")
    private Integer pid;
    /**
     * 名称
     */
    @TableField("name")
    private String name;
    /**
     * 标题
     */
    @TableField("title")
    private String title;
    /**
     * 备注
     */
    @TableField("remark")
    private String remark;
    /**
     * 是否菜单
     */
    @TableField("ismenu")
    private Boolean ismenu;
    /**
     * 创建时间
     */
    @TableField("createtime")
    private Long createtime;
    /**
     * 更新时间
     */
    @TableField("updatetime")
    private Long updatetime;
    /**
     * 权重
     */
    @TableField("weigh")
    private Integer weigh;
    /**
     * 状态
     */
    @TableField("status")
    private String status;

    public static CcUserRuleVO toVO(CcUserRuleDO ccUserRuleDO) {
        if(ccUserRuleDO == null){
            return null;
        }
        CcUserRuleVO ccUserRuleVO = new CcUserRuleVO();
        BeanUtils.copyProperties(ccUserRuleDO, ccUserRuleVO);
        return ccUserRuleVO;
    }

    public static CcUserRuleDO toDO(CcUserRuleAddDTO ccUserRuleAddDTO) {
        if (ccUserRuleAddDTO == null) {
            return null;
        }
        CcUserRuleDO ccUserRuleDO = new CcUserRuleDO();
        BeanUtils.copyProperties(ccUserRuleAddDTO, ccUserRuleDO);
        return ccUserRuleDO;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy