Add doc
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
package top.fatweb.api.entity.common
|
||||
|
||||
/**
|
||||
* Business code entity
|
||||
*
|
||||
* @author FatttSnake
|
||||
* @since 1.0.0
|
||||
*/
|
||||
enum class BusinessCode(val code: Int) {
|
||||
SYSTEM(100),
|
||||
DATABASE(200)
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
package top.fatweb.api.entity.common
|
||||
|
||||
/**
|
||||
* Response code entity
|
||||
*
|
||||
* @author FatttSnake
|
||||
* @since 1.0.0
|
||||
*/
|
||||
enum class ResponseCode(val code: Int) {
|
||||
SYSTEM_OK(BusinessCode.SYSTEM, 0),
|
||||
SYSTEM_LOGIN_SUCCESS(BusinessCode.SYSTEM, 20),
|
||||
|
||||
@@ -3,6 +3,12 @@ package top.fatweb.api.entity.common
|
||||
import io.swagger.v3.oas.annotations.media.Schema
|
||||
import java.io.Serializable
|
||||
|
||||
/**
|
||||
* Response result entity
|
||||
*
|
||||
* @author FatttSnake
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class ResponseResult<T> private constructor(
|
||||
@Schema(description = "响应码", defaultValue = "200") val code: Int,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user