| package com.pt5.pthouduan.controller; |
| |
| import com.pt5.pthouduan.entity.User; |
| import com.pt5.pthouduan.service.InviteService; |
| import org.springframework.beans.factory.annotation.Autowired; |
| import org.springframework.web.bind.annotation.*; |
| |
| import java.util.Map; |
| |
| @RestController |
| @RequestMapping("/invite") |
| public class InvitesController { |
| @Autowired |
| private InviteService inviteService; |
| @PostMapping("/sold") |
| public Map<String, Object> soldinvite(@RequestParam String buyername) { |
| return inviteService.setbuyername(buyername); |
| } |
| } |