From 6873ee2b98283d9a876dfc6e5d878094e5de61d9 Mon Sep 17 00:00:00 2001 From: huanghongfa <18228131219@163.com> Date: 星期三, 20 一月 2021 11:30:46 +0800 Subject: [PATCH] 系统配置 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/AdvertisementApi.java | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 60 insertions(+), 0 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/AdvertisementApi.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/AdvertisementApi.java index 6a7d5e8..45ffbda 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/AdvertisementApi.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/AdvertisementApi.java @@ -1,9 +1,12 @@ package com.panzhihua.service_community.api; +import com.panzhihua.common.model.dtos.AppletesBackstageConfigDTO; +import com.panzhihua.common.model.dtos.advertisement.ComOpsAdvDTO; import com.panzhihua.common.model.vos.R; import com.panzhihua.service_community.service.ComOpsAdvService; import lombok.extern.slf4j.Slf4j; import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @@ -30,4 +33,61 @@ public R getJumpContent(){ return comOpsAdvService.getJumpContent(); } + + /** + * 编辑运营后台系统配置 + * @param appletesBackstageConfigDTO 编辑内容 + * @return 编辑结果 + */ + @PostMapping("putjumpcontent") + public R putJumpContent(@RequestBody AppletesBackstageConfigDTO appletesBackstageConfigDTO){ + return comOpsAdvService.putJumpContent(appletesBackstageConfigDTO); + } + + /** + * 首页广告banner + * @return 广告列表 + */ + @PostMapping("listadvertisement") + public R listAdvertisement(){ + return comOpsAdvService.listAdvertisement(); + } + + /** + * 新增广告 + * @param comOpsAdvDTO + * @return 新增结果 + */ + @PostMapping("addadvertisement") + public R addAdvertisement(@RequestBody ComOpsAdvDTO comOpsAdvDTO){ + return comOpsAdvService.addAdvertisement(comOpsAdvDTO); + } + + /** + * 编辑广告 + * @param comOpsAdvDTO 编辑内容 + * @return 编辑结果 + */ + @PostMapping("putadvertisement") + public R putAdvertisement(@RequestBody ComOpsAdvDTO comOpsAdvDTO){ + return comOpsAdvService.putAdvertisement(comOpsAdvDTO); + } + + /** + * 广告位置下拉列表 + * @return 位置集合 + */ + @PostMapping("listadvpos") + public R listadvpos(){ + return comOpsAdvService.listadvpos(); + } + + /** + * 跳转内容下拉集合 + * @return 跳转集合 + */ + @PostMapping("listadvjump") + public R listAdvjump(){ + return comOpsAdvService.listAdvjump(); + } } -- Gitblit v1.7.1