| | |
| | | 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 org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | |
| | | * @author 无关风月 |
| | | * @since 2024-04-26 |
| | | */ |
| | | @Controller |
| | | @RestController |
| | | @RequestMapping("/tProtocol") |
| | | public class TProtocolController { |
| | | |
| | |
| | | return R.ok(protocolService.lambdaQuery().eq(TProtocol::getType, type) |
| | | .eq(TProtocol::getDisabled, 0).one()); |
| | | } |
| | | @PostMapping("/home1") |
| | | @ApiOperation(value = "用户协议/隐私协议/注销协议", tags = {"用户协议/隐私协议/注销协议"}) |
| | | public R<TProtocol> home1(@RequestParam Integer type) { |
| | | return R.ok(protocolService.lambdaQuery().eq(TProtocol::getType, type) |
| | | .eq(TProtocol::getDisabled, 0).one()); |
| | | } |
| | | |
| | | } |
| | | |