From 179c4d64313c9b7572778da4aaaf6c6584fe457d Mon Sep 17 00:00:00 2001 From: mitao <2763622819@qq.com> Date: 星期二, 20 五月 2025 23:48:08 +0800 Subject: [PATCH] 修改文件上传类型限制 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComActEasyPhotoRewardDO.java | 33 +++++++++++++-------------------- 1 files changed, 13 insertions(+), 20 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComActEasyPhotoRewardDO.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComActEasyPhotoRewardDO.java index 92af062..5f8c3f5 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComActEasyPhotoRewardDO.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/model/dos/ComActEasyPhotoRewardDO.java @@ -1,14 +1,14 @@ package com.panzhihua.service_community.model.dos; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import lombok.Data; - import java.io.Serializable; import java.math.BigDecimal; import java.util.Date; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; + +import lombok.Data; /** * @auther lyq @@ -25,7 +25,7 @@ /** * 主键id */ - @TableId(type = IdType.AUTO) + @TableId(type = IdType.ASSIGN_ID) private Long id; /** @@ -58,24 +58,17 @@ */ private Date updateAt; + @Override + public String toString() { + return "ComActEasyPhotoRewardDO{" + "id=" + id + ", userId=" + userId + ", communityId=" + communityId + + ", isRead=" + isRead + ", amount=" + amount + ", createAt=" + createAt + ", updateAt=" + updateAt + "}"; + } + /** * 是否已读(1.是 2.否) */ - public interface isRead{ + public interface isRead { int yes = 1; int no = 2; - } - - @Override - public String toString() { - return "ComActEasyPhotoRewardDO{" + - "id=" + id + - ", userId=" + userId + - ", communityId=" + communityId + - ", isRead=" + isRead + - ", amount=" + amount + - ", createAt=" + createAt + - ", updateAt=" + updateAt + - "}"; } } \ No newline at end of file -- Gitblit v1.7.1