20 lines
486 B
Java
20 lines
486 B
Java
package com.designhub.mapper;
|
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
import com.designhub.entity.S3Config;
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
import org.apache.ibatis.annotations.Select;
|
|
|
|
/**
|
|
* S3配置Mapper
|
|
*/
|
|
@Mapper
|
|
public interface S3ConfigMapper extends BaseMapper<S3Config> {
|
|
|
|
/**
|
|
* 获取激活的S3配置
|
|
*/
|
|
@Select("SELECT * FROM sys_s3_config WHERE is_active = 1 AND deleted = 0 LIMIT 1")
|
|
S3Config getActiveConfig();
|
|
}
|