|
@@ -1,6 +1,11 @@
|
|
|
package com.yh.saas.plugin.yiliangyiyun.controller;
|
|
|
|
|
|
|
|
|
+import com.yh.saas.plugin.yiliangyiyun.entity.ReceivingUser;
|
|
|
+import com.yh.saas.plugin.yiliangyiyun.service.IReceivingUserService;
|
|
|
+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;
|
|
@@ -16,6 +21,18 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
@RestController
|
|
|
@RequestMapping("/receivingUser")
|
|
|
public class ReceivingUserController {
|
|
|
+ @Autowired
|
|
|
+ private IReceivingUserService receivingUserService;
|
|
|
+ /**
|
|
|
+ * 删除
|
|
|
+ *
|
|
|
+ * @param example
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping("/deleteInfo")
|
|
|
+ public void deleteInfo(@RequestBody ReceivingUser example) {
|
|
|
+ receivingUserService.deleteInfo(example.getId());
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
|