io.github.yogboot.common.controller.ExceptionController Maven / Gradle / Ivy
package io.github.yogboot.common.controller;
import io.github.yogboot.api.pojo.base.BaseResponse;
import io.github.yogboot.common.response.CommonExceptionEnum;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/exception")
public class ExceptionController {
@RequestMapping("/keyIsNull")
public BaseResponse> keyIsNull() {
return new BaseResponse<>(CommonExceptionEnum.KEY_IS_NULL);
}
@RequestMapping("/keyIsError")
public BaseResponse> keyIsError() {
return new BaseResponse<>(CommonExceptionEnum.KEY_IS_ERROR);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy