update 将所有 云存储字样 改为 对象存储 避免误解

This commit is contained in:
疯狂的狮子li 2021-09-10 10:51:40 +08:00
parent 5bb7b0dda5
commit c1c6c1cf30
21 changed files with 77 additions and 77 deletions

View File

@ -25,14 +25,14 @@ import javax.validation.constraints.NotNull;
import java.util.Arrays; import java.util.Arrays;
/** /**
* 存储配置Controller * 对象存储配置Controller
* *
* @author Lion Li * @author Lion Li
* @author 孤舟烟雨 * @author 孤舟烟雨
* @date 2021-08-13 * @date 2021-08-13
*/ */
@Validated @Validated
@Api(value = "存储配置控制器", tags = {"存储配置管理"}) @Api(value = "对象存储配置控制器", tags = {"对象存储配置管理"})
@RequiredArgsConstructor(onConstructor_ = @Autowired) @RequiredArgsConstructor(onConstructor_ = @Autowired)
@RestController @RestController
@RequestMapping("/system/oss/config") @RequestMapping("/system/oss/config")
@ -41,9 +41,9 @@ public class SysOssConfigController extends BaseController {
private final ISysOssConfigService iSysOssConfigService; private final ISysOssConfigService iSysOssConfigService;
/** /**
* 查询存储配置列表 * 查询对象存储配置列表
*/ */
@ApiOperation("查询存储配置列表") @ApiOperation("查询对象存储配置列表")
@PreAuthorize("@ss.hasPermi('system:oss:list')") @PreAuthorize("@ss.hasPermi('system:oss:list')")
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo<SysOssConfigVo> list(@Validated(QueryGroup.class) SysOssConfigBo bo) { public TableDataInfo<SysOssConfigVo> list(@Validated(QueryGroup.class) SysOssConfigBo bo) {
@ -51,9 +51,9 @@ public class SysOssConfigController extends BaseController {
} }
/** /**
* 获取存储配置详细信息 * 获取对象存储配置详细信息
*/ */
@ApiOperation("获取存储配置详细信息") @ApiOperation("获取对象存储配置详细信息")
@PreAuthorize("@ss.hasPermi('system:oss:query')") @PreAuthorize("@ss.hasPermi('system:oss:query')")
@GetMapping("/{ossConfigId}") @GetMapping("/{ossConfigId}")
public AjaxResult<SysOssConfigVo> getInfo(@NotNull(message = "主键不能为空") public AjaxResult<SysOssConfigVo> getInfo(@NotNull(message = "主键不能为空")
@ -62,11 +62,11 @@ public class SysOssConfigController extends BaseController {
} }
/** /**
* 新增存储配置 * 新增对象存储配置
*/ */
@ApiOperation("新增存储配置") @ApiOperation("新增对象存储配置")
@PreAuthorize("@ss.hasPermi('system:oss:add')") @PreAuthorize("@ss.hasPermi('system:oss:add')")
@Log(title = "存储配置", businessType = BusinessType.INSERT) @Log(title = "对象存储配置", businessType = BusinessType.INSERT)
@RepeatSubmit() @RepeatSubmit()
@PostMapping() @PostMapping()
public AjaxResult<Void> add(@Validated(AddGroup.class) @RequestBody SysOssConfigBo bo) { public AjaxResult<Void> add(@Validated(AddGroup.class) @RequestBody SysOssConfigBo bo) {
@ -74,11 +74,11 @@ public class SysOssConfigController extends BaseController {
} }
/** /**
* 修改存储配置 * 修改对象存储配置
*/ */
@ApiOperation("修改存储配置") @ApiOperation("修改对象存储配置")
@PreAuthorize("@ss.hasPermi('system:oss:edit')") @PreAuthorize("@ss.hasPermi('system:oss:edit')")
@Log(title = "存储配置", businessType = BusinessType.UPDATE) @Log(title = "对象存储配置", businessType = BusinessType.UPDATE)
@RepeatSubmit() @RepeatSubmit()
@PutMapping() @PutMapping()
public AjaxResult<Void> edit(@Validated(EditGroup.class) @RequestBody SysOssConfigBo bo) { public AjaxResult<Void> edit(@Validated(EditGroup.class) @RequestBody SysOssConfigBo bo) {
@ -86,11 +86,11 @@ public class SysOssConfigController extends BaseController {
} }
/** /**
* 删除存储配置 * 删除对象存储配置
*/ */
@ApiOperation("删除存储配置") @ApiOperation("删除对象存储配置")
@PreAuthorize("@ss.hasPermi('system:oss:remove')") @PreAuthorize("@ss.hasPermi('system:oss:remove')")
@Log(title = "存储配置", businessType = BusinessType.DELETE) @Log(title = "对象存储配置", businessType = BusinessType.DELETE)
@DeleteMapping("/{ossConfigIds}") @DeleteMapping("/{ossConfigIds}")
public AjaxResult<Void> remove(@NotEmpty(message = "主键不能为空") public AjaxResult<Void> remove(@NotEmpty(message = "主键不能为空")
@PathVariable Long[] ossConfigIds) { @PathVariable Long[] ossConfigIds) {
@ -101,7 +101,7 @@ public class SysOssConfigController extends BaseController {
* 状态修改 * 状态修改
*/ */
@PreAuthorize("@ss.hasPermi('system:oss:edit')") @PreAuthorize("@ss.hasPermi('system:oss:edit')")
@Log(title = "存储状态修改", businessType = BusinessType.UPDATE) @Log(title = "对象存储状态修改", businessType = BusinessType.UPDATE)
@PutMapping("/changeStatus") @PutMapping("/changeStatus")
public AjaxResult changeStatus(@RequestBody SysOssConfigBo bo) { public AjaxResult changeStatus(@RequestBody SysOssConfigBo bo) {
return toAjax(iSysOssConfigService.updateOssConfigStatus(bo)); return toAjax(iSysOssConfigService.updateOssConfigStatus(bo));

View File

@ -49,7 +49,7 @@ import java.util.Map;
* @author Lion Li * @author Lion Li
*/ */
@Validated @Validated
@Api(value = "OSS存储控制器", tags = {"OSS存储管理"}) @Api(value = "OSS对象存储控制器", tags = {"OSS对象存储管理"})
@RequiredArgsConstructor(onConstructor_ = @Autowired) @RequiredArgsConstructor(onConstructor_ = @Autowired)
@RestController @RestController
@RequestMapping("/system/oss") @RequestMapping("/system/oss")
@ -59,9 +59,9 @@ public class SysOssController extends BaseController {
private final ISysConfigService iSysConfigService; private final ISysConfigService iSysConfigService;
/** /**
* 查询OSS存储列表 * 查询OSS对象存储列表
*/ */
@ApiOperation("查询OSS存储列表") @ApiOperation("查询OSS对象存储列表")
@PreAuthorize("@ss.hasPermi('system:oss:list')") @PreAuthorize("@ss.hasPermi('system:oss:list')")
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo<SysOssVo> list(@Validated(QueryGroup.class) SysOssBo bo) { public TableDataInfo<SysOssVo> list(@Validated(QueryGroup.class) SysOssBo bo) {
@ -69,14 +69,14 @@ public class SysOssController extends BaseController {
} }
/** /**
* 上传OSS存储 * 上传OSS对象存储
*/ */
@ApiOperation("上传OSS存储") @ApiOperation("上传OSS对象存储")
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(name = "file", value = "文件", dataType = "java.io.File", required = true), @ApiImplicitParam(name = "file", value = "文件", dataType = "java.io.File", required = true),
}) })
@PreAuthorize("@ss.hasPermi('system:oss:upload')") @PreAuthorize("@ss.hasPermi('system:oss:upload')")
@Log(title = "OSS存储", businessType = BusinessType.INSERT) @Log(title = "OSS对象存储", businessType = BusinessType.INSERT)
@RepeatSubmit @RepeatSubmit
@PostMapping("/upload") @PostMapping("/upload")
public AjaxResult<Map<String, String>> upload(@RequestPart("file") MultipartFile file) { public AjaxResult<Map<String, String>> upload(@RequestPart("file") MultipartFile file) {
@ -90,7 +90,7 @@ public class SysOssController extends BaseController {
return AjaxResult.success(map); return AjaxResult.success(map);
} }
@ApiOperation("下载OSS存储") @ApiOperation("下载OSS对象存储")
@PreAuthorize("@ss.hasPermi('system:oss:download')") @PreAuthorize("@ss.hasPermi('system:oss:download')")
@GetMapping("/download/{ossId}") @GetMapping("/download/{ossId}")
public void download(@PathVariable Long ossId, HttpServletResponse response) throws IOException { public void download(@PathVariable Long ossId, HttpServletResponse response) throws IOException {
@ -108,11 +108,11 @@ public class SysOssController extends BaseController {
} }
/** /**
* 删除OSS存储 * 删除OSS对象存储
*/ */
@ApiOperation("删除OSS存储") @ApiOperation("删除OSS对象存储")
@PreAuthorize("@ss.hasPermi('system:oss:remove')") @PreAuthorize("@ss.hasPermi('system:oss:remove')")
@Log(title = "OSS存储" , businessType = BusinessType.DELETE) @Log(title = "OSS对象存储" , businessType = BusinessType.DELETE)
@DeleteMapping("/{ossIds}") @DeleteMapping("/{ossIds}")
public AjaxResult<Void> remove(@NotEmpty(message = "主键不能为空") public AjaxResult<Void> remove(@NotEmpty(message = "主键不能为空")
@PathVariable Long[] ossIds) { @PathVariable Long[] ossIds) {
@ -124,7 +124,7 @@ public class SysOssController extends BaseController {
*/ */
@ApiOperation("变更图片列表预览状态") @ApiOperation("变更图片列表预览状态")
@PreAuthorize("@ss.hasPermi('system:oss:edit')") @PreAuthorize("@ss.hasPermi('system:oss:edit')")
@Log(title = "OSS存储" , businessType = BusinessType.UPDATE) @Log(title = "OSS对象存储" , businessType = BusinessType.UPDATE)
@PutMapping("/changePreviewListResource") @PutMapping("/changePreviewListResource")
public AjaxResult<Void> changePreviewListResource(@RequestBody String body) { public AjaxResult<Void> changePreviewListResource(@RequestBody String body) {
Map<String, Boolean> map = JsonUtils.parseMap(body); Map<String, Boolean> map = JsonUtils.parseMap(body);

View File

@ -4,7 +4,7 @@ import java.util.Arrays;
import java.util.List; import java.util.List;
/** /**
* 存储常量 * 对象存储常量
* *
* @author Lion Li * @author Lion Li
*/ */
@ -16,7 +16,7 @@ public class CloudConstant {
public static final String SYS_OSS_KEY = "sys_oss:"; public static final String SYS_OSS_KEY = "sys_oss:";
/** /**
* 存储配置KEY * 对象存储配置KEY
*/ */
public static final String CLOUD_STORAGE_CONFIG_KEY = "CloudStorageConfig"; public static final String CLOUD_STORAGE_CONFIG_KEY = "CloudStorageConfig";

View File

@ -9,7 +9,7 @@ import lombok.AllArgsConstructor;
import lombok.Getter; import lombok.Getter;
/** /**
* 存储服务商枚举 * 对象存储服务商枚举
* *
* @author Lion Li * @author Lion Li
*/ */

View File

@ -5,7 +5,7 @@ import lombok.Data;
import java.util.Date; import java.util.Date;
/** /**
* OSS存储 配置属性 * OSS对象存储 配置属性
* *
* @author Lion Li * @author Lion Li
*/ */

View File

@ -5,7 +5,7 @@ import com.ruoyi.oss.entity.UploadResult;
import java.io.InputStream; import java.io.InputStream;
/** /**
* 存储策略 * 对象存储策略
* *
* @author Lion Li * @author Lion Li
*/ */

View File

@ -11,7 +11,7 @@ import com.ruoyi.oss.service.ICloudStorageStrategy;
import java.io.InputStream; import java.io.InputStream;
/** /**
* 存储策略(支持七牛阿里云腾讯云minio) * 对象存储策略(支持七牛阿里云腾讯云minio)
* *
* @author Lion Li * @author Lion Li
*/ */

View File

@ -9,7 +9,7 @@ import java.io.Serializable;
import java.util.Date; import java.util.Date;
/** /**
* OSS存储对象 * OSS对象存储对象
* *
* @author Lion Li * @author Lion Li
*/ */
@ -23,7 +23,7 @@ public class SysOss implements Serializable {
/** /**
* 存储主键 * 对象存储主键
*/ */
@TableId(value = "oss_id", type = IdType.AUTO) @TableId(value = "oss_id", type = IdType.AUTO)
private Long ossId; private Long ossId;

View File

@ -9,7 +9,7 @@ import java.util.Date;
import java.math.BigDecimal; import java.math.BigDecimal;
/** /**
* 存储配置对象 sys_oss_config * 对象存储配置对象 sys_oss_config
* *
* @author ruoyi * @author ruoyi
* @date 2021-08-11 * @date 2021-08-11

View File

@ -7,13 +7,13 @@ import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
/** /**
* OSS存储分页查询对象 sys_oss * OSS对象存储分页查询对象 sys_oss
* *
* @author Lion Li * @author Lion Li
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@ApiModel("OSS存储分页查询对象") @ApiModel("OSS对象存储分页查询对象")
public class SysOssBo extends BaseEntity { public class SysOssBo extends BaseEntity {
/** /**

View File

@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size; import javax.validation.constraints.Size;
/** /**
* 存储配置业务对象 sys_oss_config * 对象存储配置业务对象 sys_oss_config
* *
* @author Lion Li * @author Lion Li
* @author 孤舟烟雨 * @author 孤舟烟雨
@ -22,7 +22,7 @@ import javax.validation.constraints.Size;
@Data @Data
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@ApiModel("存储配置业务对象") @ApiModel("对象存储配置业务对象")
public class SysOssConfigBo extends BaseEntity { public class SysOssConfigBo extends BaseEntity {
/** /**

View File

@ -8,14 +8,14 @@ import lombok.Data;
/** /**
* 存储配置视图对象 sys_oss_config * 对象存储配置视图对象 sys_oss_config
* *
* @author Lion Li * @author Lion Li
* @author 孤舟烟雨 * @author 孤舟烟雨
* @date 2021-08-13 * @date 2021-08-13
*/ */
@Data @Data
@ApiModel("存储配置视图对象") @ApiModel("对象存储配置视图对象")
@ExcelIgnoreUnannotated @ExcelIgnoreUnannotated
public class SysOssConfigVo { public class SysOssConfigVo {

View File

@ -7,20 +7,20 @@ import lombok.Data;
import java.util.Date; import java.util.Date;
/** /**
* OSS存储视图对象 sys_oss * OSS对象存储视图对象 sys_oss
* *
* @author Lion Li * @author Lion Li
*/ */
@Data @Data
@ApiModel("OSS存储视图对象") @ApiModel("OSS对象存储视图对象")
public class SysOssVo { public class SysOssVo {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* 存储主键 * 对象存储主键
*/ */
@ApiModelProperty("存储主键") @ApiModelProperty("对象存储主键")
private Long ossId; private Long ossId;
/** /**

View File

@ -4,7 +4,7 @@ import com.ruoyi.common.core.mybatisplus.core.BaseMapperPlus;
import com.ruoyi.system.domain.SysOssConfig; import com.ruoyi.system.domain.SysOssConfig;
/** /**
* 存储配置Mapper接口 * 对象存储配置Mapper接口
* *
* @author Lion Li * @author Lion Li
* @author 孤舟烟雨 * @author 孤舟烟雨

View File

@ -9,7 +9,7 @@ import com.ruoyi.system.domain.vo.SysOssConfigVo;
import java.util.Collection; import java.util.Collection;
/** /**
* 存储配置Service接口 * 对象存储配置Service接口
* *
* @author Lion Li * @author Lion Li
* @author 孤舟烟雨 * @author 孤舟烟雨
@ -29,15 +29,15 @@ public interface ISysOssConfigService extends IServicePlus<SysOssConfig, SysOssC
/** /**
* 根据新增业务对象插入存储配置 * 根据新增业务对象插入对象存储配置
* @param bo 存储配置新增业务对象 * @param bo 对象存储配置新增业务对象
* @return * @return
*/ */
Boolean insertByBo(SysOssConfigBo bo); Boolean insertByBo(SysOssConfigBo bo);
/** /**
* 根据编辑业务对象修改存储配置 * 根据编辑业务对象修改对象存储配置
* @param bo 存储配置编辑业务对象 * @param bo 对象存储配置编辑业务对象
* @return * @return
*/ */
Boolean updateByBo(SysOssConfigBo bo); Boolean updateByBo(SysOssConfigBo bo);

View File

@ -31,7 +31,7 @@ import java.util.Collection;
import java.util.List; import java.util.List;
/** /**
* 存储配置Service业务层处理 * 对象存储配置Service业务层处理
* *
* @author Lion Li * @author Lion Li
* @author 孤舟烟雨 * @author 孤舟烟雨

View File

@ -1,6 +1,6 @@
import request from '@/utils/request' import request from '@/utils/request'
// 查询OSS存储列表 // 查询OSS对象存储列表
export function listOss(query) { export function listOss(query) {
return request({ return request({
url: '/system/oss/list', url: '/system/oss/list',
@ -9,7 +9,7 @@ export function listOss(query) {
}) })
} }
// 删除OSS存储 // 删除OSS对象存储
export function delOss(ossId) { export function delOss(ossId) {
return request({ return request({
url: '/system/oss/' + ossId, url: '/system/oss/' + ossId,

View File

@ -1,6 +1,6 @@
import request from '@/utils/request' import request from '@/utils/request'
// 查询存储配置列表 // 查询对象存储配置列表
export function listOssConfig(query) { export function listOssConfig(query) {
return request({ return request({
url: '/system/oss/config/list', url: '/system/oss/config/list',
@ -9,7 +9,7 @@ export function listOssConfig(query) {
}) })
} }
// 查询存储配置详细 // 查询对象存储配置详细
export function getOssConfig(ossConfigId) { export function getOssConfig(ossConfigId) {
return request({ return request({
url: '/system/oss/config/' + ossConfigId, url: '/system/oss/config/' + ossConfigId,
@ -17,7 +17,7 @@ export function getOssConfig(ossConfigId) {
}) })
} }
// 新增存储配置 // 新增对象存储配置
export function addOssConfig(data) { export function addOssConfig(data) {
return request({ return request({
url: '/system/oss/config', url: '/system/oss/config',
@ -26,7 +26,7 @@ export function addOssConfig(data) {
}) })
} }
// 修改存储配置 // 修改对象存储配置
export function updateOssConfig(data) { export function updateOssConfig(data) {
return request({ return request({
url: '/system/oss/config', url: '/system/oss/config',
@ -35,7 +35,7 @@ export function updateOssConfig(data) {
}) })
} }
// 删除存储配置 // 删除对象存储配置
export function delOssConfig(ossConfigId) { export function delOssConfig(ossConfigId) {
return request({ return request({
url: '/system/oss/config/' + ossConfigId, url: '/system/oss/config/' + ossConfigId,

View File

@ -118,7 +118,7 @@
@pagination="getList" @pagination="getList"
/> />
<!-- 添加或修改存储配置对话框 --> <!-- 添加或修改对象存储配置对话框 -->
<el-dialog :title="title" :visible.sync="open" width="800px" append-to-body> <el-dialog :title="title" :visible.sync="open" width="800px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="120px"> <el-form ref="form" :model="form" :rules="rules" label-width="120px">
<el-form-item label="配置key" prop="configKey"> <el-form-item label="配置key" prop="configKey">
@ -201,7 +201,7 @@ export default {
showSearch: true, showSearch: true,
// //
total: 0, total: 0,
// //
ossConfigList: [], ossConfigList: [],
// configKeyOptions // configKeyOptions
configKeyOptions: [], configKeyOptions: [],
@ -284,7 +284,7 @@ export default {
this.configKeyOptions = this.configKeyDatas; this.configKeyOptions = this.configKeyDatas;
}, },
methods: { methods: {
/** 查询存储配置列表 */ /** 查询对象存储配置列表 */
getList() { getList() {
this.loading = true; this.loading = true;
listOssConfig(this.queryParams).then((response) => { listOssConfig(this.queryParams).then((response) => {
@ -335,7 +335,7 @@ export default {
handleAdd() { handleAdd() {
this.reset(); this.reset();
this.open = true; this.open = true;
this.title = "添加存储配置"; this.title = "添加对象存储配置";
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
@ -346,7 +346,7 @@ export default {
this.loading = false; this.loading = false;
this.form = response.data; this.form = response.data;
this.open = true; this.open = true;
this.title = "修改存储配置"; this.title = "修改对象存储配置";
}); });
}, },
/** 提交按钮 */ /** 提交按钮 */
@ -377,7 +377,7 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const ossConfigIds = row.ossConfigId || this.ids; const ossConfigIds = row.ossConfigId || this.ids;
this.$confirm('是否确认删除存储配置编号为"' + ossConfigIds + '"的数据项?', "警告", { this.$confirm('是否确认删除对象存储配置编号为"' + ossConfigIds + '"的数据项?', "警告", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning" type: "warning"
@ -392,7 +392,7 @@ export default {
this.loading = false; this.loading = false;
}); });
}, },
// //
handleStatusChange(row) { handleStatusChange(row) {
let text = row.status === "0" ? "启用" : "停用"; let text = row.status === "0" ? "启用" : "停用";
this.$confirm( this.$confirm(

View File

@ -120,7 +120,7 @@
<el-table v-loading="loading" :data="ossList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="ossList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column label="存储主键" align="center" prop="ossId" v-if="false"/> <el-table-column label="对象存储主键" align="center" prop="ossId" v-if="false"/>
<el-table-column label="文件名" align="center" prop="fileName" /> <el-table-column label="文件名" align="center" prop="fileName" />
<el-table-column label="原名" align="center" prop="originalName" /> <el-table-column label="原名" align="center" prop="originalName" />
<el-table-column label="文件后缀" align="center" prop="fileSuffix" /> <el-table-column label="文件后缀" align="center" prop="fileSuffix" />
@ -170,7 +170,7 @@
@pagination="getList" @pagination="getList"
/> />
<!-- 添加或修改OSS存储对话框 --> <!-- 添加或修改OSS对象存储对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px"> <el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="文件名"> <el-form-item label="文件名">
@ -210,7 +210,7 @@ export default {
showSearch: true, showSearch: true,
// //
total: 0, total: 0,
// OSS // OSS
ossList: [], ossList: [],
// //
title: "", title: "",
@ -248,7 +248,7 @@ export default {
this.getList(); this.getList();
}, },
methods: { methods: {
/** 查询OSS存储列表 */ /** 查询OSS对象存储列表 */
getList() { getList() {
this.loading = true; this.loading = true;
this.queryParams.params = {}; this.queryParams.params = {};
@ -330,7 +330,7 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const ossIds = row.ossId || this.ids; const ossIds = row.ossId || this.ids;
this.$confirm('是否确认删除OSS存储编号为"' + ossIds + '"的数据项?', "警告", { this.$confirm('是否确认删除OSS对象存储编号为"' + ossIds + '"的数据项?', "警告", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning" type: "warning"

View File

@ -1,9 +1,9 @@
-- ---------------------------- -- ----------------------------
-- OSS存储表 -- OSS对象存储表
-- ---------------------------- -- ----------------------------
drop table if exists sys_oss; drop table if exists sys_oss;
create table sys_oss ( create table sys_oss (
oss_id bigint(20) not null auto_increment comment '存储主键', oss_id bigint(20) not null auto_increment comment '对象存储主键',
file_name varchar(64) not null default '' comment '文件名', file_name varchar(64) not null default '' comment '文件名',
original_name varchar(64) not null default '' comment '原名', original_name varchar(64) not null default '' comment '原名',
file_suffix varchar(10) not null default '' comment '文件后缀名', file_suffix varchar(10) not null default '' comment '文件后缀名',
@ -14,10 +14,10 @@ create table sys_oss (
update_by varchar(64) default '' comment '更新人', update_by varchar(64) default '' comment '更新人',
service varchar(10) not null default 'minio' comment '服务商', service varchar(10) not null default 'minio' comment '服务商',
primary key (oss_id) primary key (oss_id)
) engine=innodb comment ='OSS存储表'; ) engine=innodb comment ='OSS对象存储表';
-- ---------------------------- -- ----------------------------
-- OSS存储动态配置表 -- OSS对象存储动态配置表
-- ---------------------------- -- ----------------------------
drop table if exists sys_oss_config; drop table if exists sys_oss_config;
create table sys_oss_config ( create table sys_oss_config (
@ -38,7 +38,7 @@ create table sys_oss_config (
update_time datetime default null comment '更新时间', update_time datetime default null comment '更新时间',
remark varchar(500) default null comment '备注', remark varchar(500) default null comment '备注',
primary key (oss_config_id) primary key (oss_config_id)
) engine=innodb comment='存储配置表'; ) engine=innodb comment='对象存储配置表';
insert into sys_config values(11, 'OSS预览列表资源开关', 'sys.oss.previewListResource', 'true', 'Y', 'admin', sysdate(), '', null, 'true:开启, false:关闭'); insert into sys_config values(11, 'OSS预览列表资源开关', 'sys.oss.previewListResource', 'true', 'Y', 'admin', sysdate(), '', null, 'true:开启, false:关闭');