New file |
| | |
| | | package com.dg.core.api; |
| | | |
| | | |
| | | import com.dg.core.ResultData; |
| | | import com.dg.core.annotation.Authorization; |
| | | import com.dg.core.annotation.CurrentUser; |
| | | import com.dg.core.db.gen.entity.Agreement; |
| | | import com.dg.core.db.gen.entity.SysUser; |
| | | import com.dg.core.service.IAgreementService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | @Api(tags = {"相关协议小程序接口"}) |
| | | @RestController |
| | | @RequestMapping("/applets/agreement") |
| | | public class AgreementAppletsController { |
| | | |
| | | @Resource |
| | | private IAgreementService agreementService; |
| | | |
| | | /** |
| | | * 通过协议名获取相关协议 |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "通过协议名获取相关协议",response = Agreement.class) |
| | | @GetMapping(value = "/queryByAgreement") |
| | | public ResultData queryByAgreement(@RequestParam("agreement") String agreement) { |
| | | return ResultData.success(agreementService.queryByAgreement(agreement)); |
| | | } |
| | | |
| | | |
| | | |
| | | } |