增加系统字典校验
parent
42db9b9e02
commit
4f4d49811f
|
@ -2,6 +2,8 @@ package com.muyu.common.core.domain;
|
||||||
|
|
||||||
import com.muyu.common.core.constant.Constants;
|
import com.muyu.common.core.constant.Constants;
|
||||||
import com.muyu.common.core.constant.HttpStatus;
|
import com.muyu.common.core.constant.HttpStatus;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Builder;
|
import lombok.Builder;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
@ -18,6 +20,7 @@ import java.io.Serializable;
|
||||||
@Builder
|
@Builder
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
|
@Tag(name = "公共返回值",description = "系统公告返回值,统一返回格式内容")
|
||||||
public class Result<T> implements Serializable {
|
public class Result<T> implements Serializable {
|
||||||
/**
|
/**
|
||||||
* 成功
|
* 成功
|
||||||
|
@ -33,10 +36,14 @@ public class Result<T> implements Serializable {
|
||||||
public static final int WARN = HttpStatus.WARN;
|
public static final int WARN = HttpStatus.WARN;
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@Schema(defaultValue = "200",type = "Integer",description = "整体返回相应状态码200表示成功,其余表示有异常,详情请见每个接口")
|
||||||
private int code;
|
private int code;
|
||||||
|
|
||||||
|
@Schema(description = "返回状态码的描述",defaultValue = "操作成功",type = "String")
|
||||||
private String msg;
|
private String msg;
|
||||||
|
|
||||||
|
@Schema(description = "返回数据")
|
||||||
private T data;
|
private T data;
|
||||||
|
|
||||||
public static <T> Result<T> success () {
|
public static <T> Result<T> success () {
|
||||||
|
|
Loading…
Reference in New Issue