| | |
| | | package com.ruoyi.management.controller; |
| | | |
| | | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.management.domain.TProtocol; |
| | | import com.ruoyi.management.service.ITProtocolService; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @RequestMapping("/tProtocol") |
| | | public class TProtocolController { |
| | | |
| | | @Resource |
| | | private ITProtocolService protocolService; |
| | | |
| | | /** |
| | | * 用户协议/隐私协议/注销协议 |
| | | * |
| | | * @param type 类型 1用户协议 2隐私协议 3注销协议 |
| | | */ |
| | | @GetMapping("/home") |
| | | @ApiOperation(value = "用户协议/隐私协议/注销协议", tags = {"用户协议/隐私协议/注销协议"}) |
| | | public R<TProtocol> home(@RequestParam Integer type) { |
| | | return R.ok(protocolService.lambdaQuery().eq(TProtocol::getType, type) |
| | | .eq(TProtocol::getDisabled, 0).one()); |
| | | } |
| | | |
| | | } |
| | | |