parent
14a1215bc4
commit
f586172782
@ -0,0 +1,23 @@
|
|||||||
|
package com.mashibing.servicedriveruser.controller;
|
||||||
|
|
||||||
|
import com.mashibing.internalcommon.dto.DriverUser;
|
||||||
|
import com.mashibing.internalcommon.dto.ResponseResult;
|
||||||
|
import com.mashibing.servicedriveruser.service.DriverUserService;
|
||||||
|
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.RestController;
|
||||||
|
|
||||||
|
@RestController
|
||||||
|
public class UserController {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private DriverUserService service;
|
||||||
|
|
||||||
|
@PostMapping("/user")
|
||||||
|
public ResponseResult saveUser(@RequestBody DriverUser driverUser){
|
||||||
|
|
||||||
|
return service.saveUser(driverUser);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in new issue