huanghongfa
2021-01-04 39fd893c2d4cf695284826655c3f59bd769cfedd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package com.panzhihua.service_community.api;
 
import com.panzhihua.common.model.dtos.AppletesBackstageConfigDTO;
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;
 
import javax.annotation.Resource;
 
/**
 * @program: springcloud_k8s_panzhihuazhihuishequ
 * @description: 广告
 * @author: huang.hongfa weixin hhf9596 qq 959656820
 * @create: 2020-12-28 17:32
 **/
@Slf4j
@RestController
@RequestMapping("/")
public class AdvertisementApi {
    @Resource
    private ComOpsAdvService comOpsAdvService;
 
    /**
     * 获取广告跳转内容配置
     * @return 跳转内容集合
     */
    @PostMapping("getjumpcontent")
    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();
    }
}