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

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


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


    /**
     * 公会表ID
     */
    @TableField("user_guild_id")
    private Integer userGuildId;
    /**
     * 会长 1:是 0:否
     */
    @TableField("is_guild")
    private Integer isGuild;
    /**
     * 创建公会用户id
     */
    @TableField("user_id")
    private Integer userId;
    /**
     * 加入公会用户id
     */
    @TableField("join_user_guild_id")
    private Integer joinUserGuildId;
    /**
     * 置顶
     */
    @TableField("top")
    private Integer top;
    /**
     * createdAt
     */
    @TableField("created_at")
    private Date createdAt;
    /**
     * updatedAt
     */
    @TableField("updated_at")
    private Date updatedAt;

    public static CcUserGuildDetailVO toVO(CcUserGuildDetailDO ccUserGuildDetailDO) {
        if(ccUserGuildDetailDO == null){
            return null;
        }
        CcUserGuildDetailVO ccUserGuildDetailVO = new CcUserGuildDetailVO();
        BeanUtils.copyProperties(ccUserGuildDetailDO, ccUserGuildDetailVO);
        return ccUserGuildDetailVO;
    }

    public static CcUserGuildDetailDO toDO(CcUserGuildDetailAddDTO ccUserGuildDetailAddDTO) {
        if (ccUserGuildDetailAddDTO == null) {
            return null;
        }
        CcUserGuildDetailDO ccUserGuildDetailDO = new CcUserGuildDetailDO();
        BeanUtils.copyProperties(ccUserGuildDetailAddDTO, ccUserGuildDetailDO);
        return ccUserGuildDetailDO;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy