|
|
@@ -5,6 +5,7 @@ import com.tuoheng.api.service.ThWestreamTiktokService; |
|
|
|
import com.tuoheng.common.utils.JsonResult; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
@@ -28,7 +29,7 @@ public class WestreamTiktokController { |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@PostMapping("/add") |
|
|
|
public JsonResult add(ThWestreamTiktok entity) { |
|
|
|
public JsonResult add(@RequestBody ThWestreamTiktok entity) { |
|
|
|
return thWestreamTiktokService.add(entity); |
|
|
|
} |
|
|
|
|