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

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


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


    /**
     * 父组别
     */
    @TableField("pid")
    private Integer pid;
    /**
     * 组名
     */
    @TableField("name")
    private String name;
    /**
     * 规则ID
     */
    @TableField("rules")
    private String rules;
    /**
     * 创建时间
     */
    @TableField("createtime")
    private Long createtime;
    /**
     * 更新时间
     */
    @TableField("updatetime")
    private Long updatetime;
    /**
     * 状态
     */
    @TableField("status")
    private String status;

    public static CcAuthGroupVO toVO(CcAuthGroupDO ccAuthGroupDO) {
        if(ccAuthGroupDO == null){
            return null;
        }
        CcAuthGroupVO ccAuthGroupVO = new CcAuthGroupVO();
        BeanUtils.copyProperties(ccAuthGroupDO, ccAuthGroupVO);
        return ccAuthGroupVO;
    }

    public static CcAuthGroupDO toDO(CcAuthGroupAddDTO ccAuthGroupAddDTO) {
        if (ccAuthGroupAddDTO == null) {
            return null;
        }
        CcAuthGroupDO ccAuthGroupDO = new CcAuthGroupDO();
        BeanUtils.copyProperties(ccAuthGroupAddDTO, ccAuthGroupDO);
        return ccAuthGroupDO;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy