@Test public void testService() throws AdUserException { CreateUserResponse response = iUserService.createUser(new CreateUserRequest( "qinyi" )); log.debug(JSON.toJSONString(response)); }
@PostMapping("/create/user") public CreateUserResponse createUser(@RequestBody CreateUserRequest request) throws AdException { log.info("ad-sponsor: createUser -> {}", JSON.toJSONString(request)); return iUserService.createUser(request); }
UserController { @PostMapping("/create/user") public CreateUserResponse createUser(@RequestBody CreateUserRequest request) throws AdException { log.info("ad-sponsor: createUser -> {}", JSON.toJSONString(request)); return iUserService.createUser(request); } }
UserController { @PostMapping("/create/user") public CreateUserResponse createUser(@RequestBody CreateUserRequest request) throws AdException { log.info("ad-sponsor: createUser -> {}", JSON.toJSONString(request)); return iUserService.createUser(request); } @Autowired  UserController(IUserService iUserService); }
UserController { @PostMapping("/create/user") public CreateUserResponse createUser(@RequestBody CreateUserRequest request) throws AdException { log.info("ad-sponsor: createUser -> {}", JSON.toJSONString(request)); return iUserService.createUser(request); } @Autowired  UserController(IUserService iUserService); @PostMapping("/create/user") CreateUserResponse createUser(@RequestBody CreateUserRequest request); }
UserController { @PostMapping("/create/user") public CreateUserResponse createUser(@RequestBody CreateUserRequest request) throws AdException { log.info("ad-sponsor: createUser -> {}", JSON.toJSONString(request)); return iUserService.createUser(request); } @Autowired  UserController(IUserService iUserService); @PostMapping("/create/user") CreateUserResponse createUser(@RequestBody CreateUserRequest request);  }