parent
2daeacbd1e
commit
be8007222b
@ -0,0 +1,16 @@
|
|||||||
|
package com.wayn.common.core.mapper.tool;
|
||||||
|
|
||||||
|
import com.wayn.common.core.domain.tool.QiniuContent;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 七牛云文件存储 Mapper 接口
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author wayn
|
||||||
|
* @since 2020-11-15
|
||||||
|
*/
|
||||||
|
public interface QiniuContentMapper extends BaseMapper<QiniuContent> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package com.wayn.common.core.service.tool;
|
||||||
|
|
||||||
|
import com.wayn.common.core.domain.tool.QiniuContent;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 七牛云文件存储 服务类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author wayn
|
||||||
|
* @since 2020-11-15
|
||||||
|
*/
|
||||||
|
public interface IQiniuContentService extends IService<QiniuContent> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.wayn.common.core.service.tool.impl;
|
||||||
|
|
||||||
|
import com.wayn.common.core.domain.tool.QiniuContent;
|
||||||
|
import com.wayn.common.core.mapper.tool.QiniuContentMapper;
|
||||||
|
import com.wayn.common.core.service.tool.IQiniuContentService;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 七牛云文件存储 服务实现类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author wayn
|
||||||
|
* @since 2020-11-15
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class QiniuContentServiceImpl extends ServiceImpl<QiniuContentMapper, QiniuContent> implements IQiniuContentService {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,23 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.wayn.common.core.mapper.tool.QiniuContentMapper">
|
||||||
|
|
||||||
|
<!-- 通用查询映射结果 -->
|
||||||
|
<resultMap id="BaseResultMap" type="com.wayn.common.core.domain.tool.QiniuContent">
|
||||||
|
<id column="content_id" property="contentId" />
|
||||||
|
<result column="bucket" property="bucket" />
|
||||||
|
<result column="name" property="name" />
|
||||||
|
<result column="size" property="size" />
|
||||||
|
<result column="type" property="type" />
|
||||||
|
<result column="url" property="url" />
|
||||||
|
<result column="suffix" property="suffix" />
|
||||||
|
<result column="update_time" property="updateTime" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<!-- 通用查询结果列 -->
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
select content_id, bucket, name, size, type, url, suffix, update_time
|
||||||
|
from qiniu_content
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
</mapper>
|
Loading…
Reference in New Issue