This commit is contained in:
2023-11-16 17:33:49 +08:00
parent ab9425f4c2
commit d0897e57e0
145 changed files with 604 additions and 304 deletions

View File

@@ -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)

View File

@@ -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),

View File

@@ -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,