| | |
| | | package com.xinquan.system.controller.client; |
| | | |
| | | import com.xinquan.common.core.web.domain.AjaxResult; |
| | | import com.xinquan.common.core.domain.R; |
| | | import com.xinquan.system.domain.vo.ContentSettingVO; |
| | | import com.xinquan.system.service.PublicService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "key", value = "用户内容 1=用户协议 2=隐私协议 3=关于心泉 4=新手冥想指南 5=课程/冥想音频购买协议", |
| | | required = true, type = "Integer", paramType = "query")}) |
| | | public AjaxResult getContent( |
| | | public R<ContentSettingVO> getContent( |
| | | @RequestParam(value = "key", required = true) Integer key) { |
| | | return AjaxResult.success(publicService.getContent(key)); |
| | | return R.ok(publicService.getContent(key)); |
| | | } |
| | | } |