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> search(UserParam param) throws Exception { return userApplicationService.search(param); } @GetMapping("/getLastSyncTime") public Result getLastSyncTime() throws Exception { return userApplicationService.getLastSyncTime(); } @GetMapping("/getDetail") public Result getDetail(Long id) throws Exception { return userApplicationService.getDetail(id); } }