feat(后台管理): 评论管理

添加评论管理菜单
master
wayn 4 years ago
parent 761e3a996b
commit 69b6b817ac

@ -1,8 +1,10 @@
package com.wayn.common.core.domain.shop;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.wayn.common.base.ShopBaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
@ -60,7 +62,8 @@ public class Comment extends ShopBaseEntity implements Serializable {
/**
* JSON
*/
private String picUrls;
@TableField(typeHandler = JacksonTypeHandler.class)
private String[] picUrls;
/**
* 1-5

@ -11,7 +11,7 @@
<result column="admin_content" property="adminContent" />
<result column="user_id" property="userId" />
<result column="has_picture" property="hasPicture" />
<result column="pic_urls" property="picUrls" />
<result column="pic_urls" property="picUrls" typeHandler="com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler"/>
<result column="star" property="star" />
<result column="create_time" property="createTime" />
<result column="update_time" property="updateTime" />

Loading…
Cancel
Save