| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | @Api(tags = {"申请入驻"}) |
| | | @RestController |
| | | @RequestMapping("/user-applyForAdmission") |
| | | @RequestMapping("/applyForAdmission") |
| | | @Slf4j |
| | | public class UserApplyForAdmissionController { |
| | | |
| | |
| | | |
| | | @PostMapping("/apply") |
| | | @ApiOperation(value = "入驻申请", tags = {"小程序-个人中心首页-申请合作"}) |
| | | public R apply(ApplyForAdmissionDTO applyForAdmissionDTO) { |
| | | userApplyForAdmissionService.apply(applyForAdmissionDTO); |
| | | return R.ok(); |
| | | public R apply(@RequestBody ApplyForAdmissionDTO applyForAdmissionDTO) { |
| | | return userApplyForAdmissionService.apply(applyForAdmissionDTO); |
| | | |
| | | } |
| | | |
| | | @GetMapping("/read") |