资源分类可选

This commit is contained in:
none
2023-03-06 10:40:00 +08:00
parent b4db9d67b2
commit 9aa63dba66
8 changed files with 48 additions and 24 deletions

View File

@@ -5,7 +5,8 @@
<mapper namespace="xyz.playedu.api.mapper.ResourceMapper">
<resultMap id="BaseResultMap" type="xyz.playedu.api.domain.Resource">
<id property="id" column="id" jdbcType="BIGINT"/>
<id property="id" column="id" jdbcType="INTEGER"/>
<result property="type" column="type" jdbcType="VARCHAR"/>
<result property="categoryId" column="category_id" jdbcType="INTEGER"/>
<result property="name" column="name" jdbcType="VARCHAR"/>
<result property="extension" column="extension" jdbcType="VARCHAR"/>
@@ -18,9 +19,9 @@
</resultMap>
<sql id="Base_Column_List">
id,category_id,name,
extension,size,disk,
file_id,path,url,
created_at
id,type,category_id,
name,extension,size,
disk,file_id,path,
url,created_at
</sql>
</mapper>