jiangqs
2023-06-06 92da9546e1b37b06f78671b34389b1dec9dfadfc
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
package com.ruoyi.system.controller.miniapp;
 
import com.ruoyi.common.core.domain.R;
import com.ruoyi.system.domain.dto.AppAgreementDto;
import com.ruoyi.system.domain.vo.AppAgreementVo;
import com.ruoyi.system.service.config.AgreementService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
 
import javax.annotation.Resource;
 
/**
 * @author jqs34
 * @ClassName AppConfigController
 * @description: TODO
 * @date 2023年04月19日
 * @version: 1.0
 */
@Api(value = "小程序配置相关接口", tags = "小程序配置相关接口", description = "小程序配置相关接口")
@RestController
@RequestMapping("/app/config")
public class AppConfigController {
 
 
    @Resource
    private AgreementService agreementService;
 
 
    @RequestMapping(value = "/getAppAgreement", method = RequestMethod.POST)
    @ApiOperation(value = "获取协议")
    public R<AppAgreementVo> getAppAgreement(@RequestBody AppAgreementDto appAgreementDto){
        AppAgreementVo appAgreementVo = agreementService.getAppAgreement(appAgreementDto);
        return R.ok(appAgreementVo);
    }
 
 
}