You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.2 KiB
36 lines
1.2 KiB
package com.project.ding.controller;
|
|
|
|
|
|
import com.project.base.domain.result.PageResult;
|
|
import com.project.base.domain.result.Result;
|
|
import com.project.ding.application.UserApplicationService;
|
|
import com.project.ding.domain.dto.UserDTO;
|
|
import com.project.ding.domain.param.UserParam;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
@RestController
|
|
@Slf4j
|
|
@RequestMapping("/dingUser")
|
|
public class UserController {
|
|
@Autowired
|
|
private UserApplicationService userApplicationService;
|
|
|
|
@GetMapping("/search")
|
|
public Result<PageResult<UserDTO>> search(UserParam param) throws Exception {
|
|
return userApplicationService.search(param);
|
|
}
|
|
|
|
@GetMapping("/getLastSyncTime")
|
|
public Result<String> getLastSyncTime() throws Exception {
|
|
return userApplicationService.getLastSyncTime();
|
|
}
|
|
|
|
@GetMapping("/getDetail")
|
|
public Result<UserDTO> getDetail(Long id) throws Exception {
|
|
return userApplicationService.getDetail(id);
|
|
}
|
|
}
|
|
|