| | |
| | | package com.oying.modules.pc.category.domain; |
| | | |
| | | import lombok.Data; |
| | | import cn.hutool.core.bean.BeanUtil; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import cn.hutool.core.bean.copier.CopyOptions; |
| | | import java.sql.Timestamp; |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.NotNull; |
| | | import java.io.Serializable; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.oying.base.BaseEntity; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.NotNull; |
| | | import java.io.Serializable; |
| | | |
| | | /** |
| | | * @description / |
| | | * @author lzp |
| | | * @date 2025-04-28 |
| | | **/ |
| | | @Data |
| | | @Getter |
| | | @Setter |
| | | @TableName("pc_platform_category") |
| | | public class PlatformCategory implements Serializable { |
| | | public class PlatformCategory extends BaseEntity implements Serializable { |
| | | |
| | | @TableId(value = "category_id", type = IdType.AUTO) |
| | | @ApiModelProperty(value = "类目ID") |
| | |
| | | @ApiModelProperty(value = "类目图标ID") |
| | | private Long iconId; |
| | | |
| | | @ApiModelProperty(value = "类目图标Url") |
| | | private String iconUrl; |
| | | |
| | | @NotNull |
| | | @ApiModelProperty(value = "状态") |
| | | private Integer status; |
| | |
| | | @NotNull |
| | | @ApiModelProperty(value = "是否启用(0-否 1-是)") |
| | | private Integer active; |
| | | |
| | | @ApiModelProperty(value = "创建人") |
| | | private Long createBy; |
| | | |
| | | @NotNull |
| | | @ApiModelProperty(value = "创建时间") |
| | | private Timestamp createTime; |
| | | |
| | | @ApiModelProperty(value = "修改人") |
| | | private Long updateBy; |
| | | |
| | | @NotNull |
| | | @ApiModelProperty(value = "更新时间") |
| | | private Timestamp updateTime; |
| | | |
| | | public void copy(PlatformCategory source){ |
| | | BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true)); |