门户相关表添加上下架接口
This commit is contained in:
parent
a337791762
commit
f19b1fb480
|
@ -62,6 +62,11 @@
|
||||||
<groupId>org.dromara</groupId>
|
<groupId>org.dromara</groupId>
|
||||||
<artifactId>ruoyi-common-encrypt</artifactId>
|
<artifactId>ruoyi-common-encrypt</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.dromara</groupId>
|
||||||
|
<artifactId>ruoyi-common-translation</artifactId>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -79,6 +79,17 @@ public class SysHomeBannerController extends BaseController {
|
||||||
return toAjax(sysHomeBannerService.updateByBo(bo));
|
return toAjax(sysHomeBannerService.updateByBo(bo));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改门户Banner
|
||||||
|
*/
|
||||||
|
@SaCheckPermission("home:banner:edit")
|
||||||
|
@Log(title = "门户Banner", businessType = BusinessType.UPDATE)
|
||||||
|
@RepeatSubmit()
|
||||||
|
@PutMapping("/status")
|
||||||
|
public R<Void> editStatus(@RequestBody SysHomeBannerBo bo) {
|
||||||
|
return toAjax(sysHomeBannerService.updateByBo(bo));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除门户Banner
|
* 删除门户Banner
|
||||||
*
|
*
|
||||||
|
|
|
@ -80,6 +80,17 @@ public class SysHomeShowController extends BaseController {
|
||||||
return toAjax(sysHomeShowService.updateByBo(bo));
|
return toAjax(sysHomeShowService.updateByBo(bo));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改学校名师
|
||||||
|
*/
|
||||||
|
@SaCheckPermission("home:show:edit")
|
||||||
|
@Log(title = "学校名师", businessType = BusinessType.UPDATE)
|
||||||
|
@RepeatSubmit()
|
||||||
|
@PutMapping("/status")
|
||||||
|
public R<Void> editStatus(@RequestBody SysHomeShowBo bo) {
|
||||||
|
return toAjax(sysHomeShowService.updateByBo(bo));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除学校名师
|
* 删除学校名师
|
||||||
*
|
*
|
||||||
|
|
|
@ -79,6 +79,17 @@ public class SysHomeTrendController extends BaseController {
|
||||||
return toAjax(sysHomeTrendService.updateByBo(bo));
|
return toAjax(sysHomeTrendService.updateByBo(bo));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改学校动态
|
||||||
|
*/
|
||||||
|
@SaCheckPermission("home:trend:edit")
|
||||||
|
@Log(title = "学校动态", businessType = BusinessType.UPDATE)
|
||||||
|
@RepeatSubmit()
|
||||||
|
@PutMapping("/stauts")
|
||||||
|
public R<Void> editStauts(@RequestBody SysHomeTrendBo bo) {
|
||||||
|
return toAjax(sysHomeTrendService.updateByBo(bo));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除学校动态
|
* 删除学校动态
|
||||||
*
|
*
|
||||||
|
|
|
@ -2,6 +2,8 @@ package org.dromara.file.domain.vo;
|
||||||
|
|
||||||
import io.github.linpeilie.annotations.AutoMapper;
|
import io.github.linpeilie.annotations.AutoMapper;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import org.dromara.common.translation.annotation.Translation;
|
||||||
|
import org.dromara.common.translation.constant.TransConstant;
|
||||||
import org.dromara.file.domain.SysHomeBanner;
|
import org.dromara.file.domain.SysHomeBanner;
|
||||||
|
|
||||||
import java.io.Serial;
|
import java.io.Serial;
|
||||||
|
@ -50,6 +52,7 @@ public class SysHomeBannerVo implements Serializable {
|
||||||
/**
|
/**
|
||||||
* 封面
|
* 封面
|
||||||
*/
|
*/
|
||||||
|
@Translation(type = TransConstant.OSS_ID_TO_URL)
|
||||||
private Long cover;
|
private Long cover;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue