|
@@ -1,9 +1,15 @@
|
|
package com.caimei365.user.controller;
|
|
package com.caimei365.user.controller;
|
|
|
|
|
|
|
|
+import com.caimei365.user.model.ClubVo;
|
|
|
|
+import com.caimei365.user.model.JsonModel;
|
|
|
|
+import com.caimei365.user.service.ClubService;
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 机构用户API
|
|
* 机构用户API
|
|
*
|
|
*
|
|
@@ -15,4 +21,11 @@ import org.springframework.web.bind.annotation.RestController;
|
|
@RequestMapping("/user/club")
|
|
@RequestMapping("/user/club")
|
|
public class ClubApi {
|
|
public class ClubApi {
|
|
|
|
|
|
|
|
+ private final ClubService clubService;
|
|
|
|
+
|
|
|
|
+ @PostMapping("/register")
|
|
|
|
+ public JsonModel<ClubVo> register(ClubVo club) {
|
|
|
|
+ return clubService.register(club);
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|