Sure233 | 8188c5d | 2025-05-28 11:43:06 +0800 | [diff] [blame^] | 1 | package com.pt5.pthouduan.controller; |
| 2 | |
| 3 | import com.pt5.pthouduan.entity.User; |
| 4 | import com.pt5.pthouduan.service.InviteService; |
| 5 | import org.springframework.beans.factory.annotation.Autowired; |
| 6 | import org.springframework.web.bind.annotation.*; |
| 7 | |
| 8 | import java.util.Map; |
| 9 | |
| 10 | @RestController |
| 11 | @RequestMapping("/invite") |
| 12 | public class InvitesController { |
| 13 | @Autowired |
| 14 | private InviteService inviteService; |
| 15 | @PostMapping("/sold") |
| 16 | public Map<String, Object> soldinvite(@RequestParam String buyername) { |
| 17 | return inviteService.setbuyername(buyername); |
| 18 | } |
| 19 | } |