package com.ruoyi.system.controller.miniapp; import com.ruoyi.common.core.domain.R; import com.ruoyi.common.security.utils.SecurityUtils; 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.beans.factory.annotation.Autowired; 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; /** * @author jqs34 * @ClassName AppConfigController * @description: TODO * @date 2023年04月19日 * @version: 1.0 */ @Api(value = "小程序配置相关接口", tags = "小程序配置相关接口", description = "小程序配置相关接口") @RestController @RequestMapping("/app/config") public class AppConfigController { @Autowired private AgreementService agreementService; @RequestMapping(value = "/getAppAgreement", method = RequestMethod.POST) @ApiOperation(value = "获取协议") public R getAppAgreement(@RequestBody AppAgreementDto appAgreementDto){ AppAgreementVo appAgreementVo = agreementService.getAppAgreement(appAgreementDto); return R.ok(appAgreementVo); } }