FangJianJun_branch
方建军 9 months ago
parent cc0e4b6b63
commit 51536b4301

@ -0,0 +1,71 @@
/*
* Copyright (c) 2018-2999 广 All rights reserved.
*
* https://www.mall4j.com/
*
*
*
*
*/
package com.yami.shop.bean.app.dto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.util.Date;
/**
* `NoticeDto`DTO
* 便
* 使便
*
* @author lanhai
*/
@Schema(description = "公告对象")
@Data
public class NoticeDto {
/**
* `id`IDLong
* ID便
* `@Schema` id
* ID
*
*/
@Schema(description = "公告id")
private Long id;
/**
* `shopId`ID
*
* ID
*/
@Schema(description = "店铺id")
private Long shopId;
/**
* `title`
*
*
*/
@Schema(description = "标题")
private String title;
/**
* `content`
*
*
* 便
*/
@Schema(description = "公告内容")
private String content;
/**
* `publishTime` `Date` `yyyy-MM-dd HH:mm:ss`
*
*
*/
@Schema(description = "公告发布时间")
private Date publishTime;
}

@ -0,0 +1,76 @@
/*
* Copyright (c) 2018-2999 广 All rights reserved.
*
* https://www.mall4j.com/
*
*
*
*
*/
package com.yami.shop.bean.model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date;
/**
*
*
* @author hzm
* @date 2019-04-18 21:21:40
*/
@Data
@TableName("tz_notice")
public class Notice implements Serializable {
private static final long serialVersionUID = 1L;
/**
* id
*/
@TableId
private Long id;
/**
* id
*/
private Long shopId;
/**
*
*/
private String title;
/**
*
*/
private String content;
/**
* (1: 0:)
*/
private Integer status;
/**
* 1: 0
*/
private Integer isTop;
/**
*
*/
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date publishTime;
/**
*
*/
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date updateTime;
}
Loading…
Cancel
Save