|
@ -6,6 +6,8 @@ import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
|
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
|
|
import com.epmet.dto.form.UserEnterGridFormDTO; |
|
|
import com.epmet.dto.form.UserEnterGridFormDTO; |
|
|
import com.epmet.dto.result.UserInfoOnEnterGridResultDTO; |
|
|
import com.epmet.dto.result.UserInfoOnEnterGridResultDTO; |
|
|
|
|
|
import com.epmet.service.UserAccessService; |
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
@ -21,13 +23,15 @@ import org.springframework.web.bind.annotation.RestController; |
|
|
@RequestMapping("user") |
|
|
@RequestMapping("user") |
|
|
public class UserGuideController { |
|
|
public class UserGuideController { |
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
private UserAccessService userAccessService; |
|
|
|
|
|
|
|
|
@PostMapping("entergrid") |
|
|
@PostMapping("entergrid") |
|
|
Result<UserInfoOnEnterGridResultDTO> enterGrid(@LoginUser TokenDto token, @RequestBody UserEnterGridFormDTO userEnterGridFormDTO){ |
|
|
Result<UserInfoOnEnterGridResultDTO> enterGrid(@LoginUser TokenDto token, @RequestBody UserEnterGridFormDTO userEnterGridFormDTO){ |
|
|
|
|
|
|
|
|
ValidatorUtils.validateEntity(userEnterGridFormDTO); |
|
|
ValidatorUtils.validateEntity(userEnterGridFormDTO); |
|
|
|
|
|
|
|
|
return null; |
|
|
return userAccessService.enterGrid(token,userEnterGridFormDTO); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|