7/24
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
package com.yxt.portal.biz.sysnotice;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @description:
|
||||
* @author: dimengzhe
|
||||
* @date: 2024/2/1
|
||||
**/
|
||||
@Data
|
||||
public class SysNoticeAppDetails {
|
||||
|
||||
|
||||
@ApiModelProperty("标题")
|
||||
private String title;
|
||||
@ApiModelProperty("有效期至")
|
||||
private String validityDate;
|
||||
@ApiModelProperty("内容")
|
||||
private String content;
|
||||
@ApiModelProperty("附件")
|
||||
private List<String> filesList = new ArrayList<>();
|
||||
@ApiModelProperty("发布日期")
|
||||
private String createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
package com.yxt.portal.biz.sysnotice;
|
||||
|
||||
import com.yxt.common.core.query.PagerQuery;
|
||||
import com.yxt.common.core.result.ResultBean;
|
||||
import com.yxt.common.core.vo.PagerVo;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @description:
|
||||
* @author: dimengzhe
|
||||
* @date: 2024/1/30
|
||||
**/
|
||||
@Api(tags = "通知公告")
|
||||
@FeignClient(
|
||||
contextId = "anrui-portal-SysNotice",
|
||||
name = "anrui-portal",
|
||||
path = "v1/SysNotice",
|
||||
fallback = SysNoticeFeignFallback.class)
|
||||
public interface SysNoticeFeign {
|
||||
|
||||
@ApiOperation("分页列表")
|
||||
@PostMapping("/listPage")
|
||||
ResultBean<PagerVo<SysNoticeVo>> listPage(@RequestBody PagerQuery<SysNoticeQuery> pagerQuery);
|
||||
|
||||
@ApiOperation("新增修改保存")
|
||||
@PostMapping("/saveOrUpdate")
|
||||
ResultBean saveOrUpdate(@RequestBody SysNoticeDto dto);
|
||||
|
||||
@ApiOperation("初始化")
|
||||
@GetMapping("/getDetails")
|
||||
ResultBean<SysNoticeDetailsVo> getDetails(@RequestParam("sid") String sid);
|
||||
|
||||
@ApiOperation("开启关闭:1是开启,2是关闭")
|
||||
@PostMapping("/setState")
|
||||
ResultBean setState(@RequestBody SysNoticesQuery query);
|
||||
|
||||
@ApiOperation("置顶是,取消置顶否")
|
||||
@PostMapping("/setTopping")
|
||||
ResultBean setTopping(@RequestBody SysNoticessQuery query);
|
||||
|
||||
@ApiOperation("首页通知公告")
|
||||
@GetMapping("/getLists")
|
||||
ResultBean<List<SysNoticeListVo>> getLists();
|
||||
|
||||
@ApiOperation("删除/批量删除")
|
||||
@DeleteMapping("/delBySids")
|
||||
ResultBean delBySids(@RequestBody String[] sids);
|
||||
|
||||
@ApiOperation("自动推送通知公告")
|
||||
@PostMapping("/savePushNotice")
|
||||
ResultBean savePushNotice(@RequestBody PushNoticeQuery query);
|
||||
|
||||
@ApiOperation("移动端通知公告")
|
||||
@GetMapping("/getAppDetails")
|
||||
ResultBean<List<NoticeAppListVo>> getAppDetails();
|
||||
|
||||
@ApiOperation("移动端")
|
||||
@GetMapping("/getDetailsApp")
|
||||
ResultBean<SysNoticeAppDetails> getDetailsApp(@RequestParam("sid") String sid);
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.yxt.portal.biz.sysnotice;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @description:
|
||||
* @author: dimengzhe
|
||||
* @date: 2024/1/31
|
||||
**/
|
||||
@Data
|
||||
public class SysNoticeListVo {
|
||||
|
||||
private String sid;
|
||||
private String title;
|
||||
private String createTime;
|
||||
@ApiModelProperty("pc的页面地址")
|
||||
private String pcUrl;
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.yxt.portal.biz.sysnotice;
|
||||
|
||||
import com.yxt.common.core.query.Query;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @description:
|
||||
* @author: dimengzhe
|
||||
* @date: 2024/1/30
|
||||
**/
|
||||
@Data
|
||||
public class SysNoticeQuery implements Query {
|
||||
private static final long serialVersionUID = -2087301472856056824L;
|
||||
@ApiModelProperty("标题")
|
||||
private String title;
|
||||
@ApiModelProperty("发布时间开始")
|
||||
private String createDateStart;
|
||||
@ApiModelProperty("发布时间结束")
|
||||
private String createDateEnd;
|
||||
@ApiModelProperty("是否置顶")
|
||||
private String topping;
|
||||
@ApiModelProperty("开启1,关闭2")
|
||||
private String state;
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.yxt.portal.biz.sysnotice;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @description:
|
||||
* @author: dimengzhe
|
||||
* @date: 2024/1/31
|
||||
**/
|
||||
@Data
|
||||
public class SysNoticessQuery {
|
||||
|
||||
@ApiModelProperty("sids")
|
||||
private List<String> sidsList = new ArrayList<>();
|
||||
@ApiModelProperty("置顶是、取消置顶否")
|
||||
private String topping;
|
||||
}
|
||||
Reference in New Issue
Block a user