• 大小: 4.92MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-11-07
  • 语言: 其他
  • 标签: Jeecg-boot  

资源简介

基于 Ant Design of Vue 实现的 Ant Design Pro Vue 版 Jeecg-boot 的前段UI框架,采用前后端分离方案,提供强大代码生成器的快速开发平台。 前端页面代码和后端功能代码一键生成,不需要写任何代码,保持jeecg一贯的强大!!

资源截图

代码片段和文件信息

package org.jeecg.common.api.vo;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.jeecg.common.constant.CommonConstant;
import lombok.Data;

/**
 *   接口返回数据格式
 * @author scott
 * @email jeecgos@163.com
 * @date  2019年1月19日
 */
@Data
@ApiModel(value=“接口返回对象“ description=“接口返回对象“)
public class Result implements Serializable {

private static final long serialVersionUID = 1L;

/**
 * 成功标志
 */
@ApiModelProperty(value = “成功标志“)
private boolean success = true;

/**
 * 返回处理消息
 */
@ApiModelProperty(value = “返回处理消息“)
private String message = “操作成功!“;

/**
 * 返回代码
 */
@ApiModelProperty(value = “返回代码“)
private Integer code = 0;

/**
 * 返回数据对象 data
 */
@ApiModelProperty(value = “返回数据对象“)
private T result;

/**
 * 时间戳
 */
@ApiModelProperty(value = “时间戳“)
private long timestamp = System.currentTimeMillis();

public Result() {

}

public Result error500(String message) {
this.message = message;
this.code = CommonConstant.SC_INTERNAL_SERVER_ERROR_500;
this.success = false;
return this;
}

public Result success(String message) {
this.message = message;
this.code = CommonConstant.SC_OK_200;
this.success = true;
return this;
}


public static Resultject> ok() {
Resultject> r = new Resultject>();
r.setSuccess(true);
r.setCode(CommonConstant.SC_OK_200);
r.setMessage(“成功“);
return r;
}

public static Resultject> ok(String msg) {
Resultject> r = new Resultject>();
r.setSuccess(true);
r.setCode(CommonConstant.SC_OK_200);
r.setMessage(msg);
return r;
}

public static Resultject> ok(object data) {
Resultject> r = new Resultject>();
r.setSuccess(true);
r.setCode(CommonConstant.SC_OK_200);
r.setResult(data);
return r;
}

public static Resultject> error(String msg) {
return error(CommonConstant.SC_INTERNAL_SERVER_ERROR_500 msg);
}

public static Resultject> error(int code String msg) {
Resultject> r = new Resultject>();
r.setCode(code);
r.setMessage(msg);
r.setSuccess(false);
return r;
}

/**
 * 无权限访问返回结果
 */
public static Resultject> noauth(String msg) {
return error(CommonConstant.SC_JEECG_NO_AUTHZ msg);
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-07-15 01:33  jeecg-boot-master\
     文件         116  2019-07-15 01:33  jeecg-boot-master\.gitattributes
     目录           0  2019-07-15 01:33  jeecg-boot-master\.github\
     文件          68  2019-07-15 01:33  jeecg-boot-master\.github\ISSUE_TEMPLATE.md
     文件       11371  2019-07-15 01:33  jeecg-boot-master\LICENSE
     文件       16964  2019-07-15 01:33  jeecg-boot-master\README.md
     目录           0  2019-07-15 01:33  jeecg-boot-master\ant-design-vue-jeecg\
     文件         661  2019-07-15 01:33  jeecg-boot-master\ant-design-vue-jeecg\.editorconfig
     文件           4  2019-07-15 01:33  jeecg-boot-master\ant-design-vue-jeecg\.eslintignore
     文件          26  2019-07-15 01:33  jeecg-boot-master\ant-design-vue-jeecg\.gitattributes
     文件         214  2019-07-15 01:33  jeecg-boot-master\ant-design-vue-jeecg\.gitignore
     文件          64  2019-07-15 01:33  jeecg-boot-master\ant-design-vue-jeecg\.prettierrc
     文件        1068  2019-07-15 01:33  jeecg-boot-master\ant-design-vue-jeecg\LICENSE
     文件        2668  2019-07-15 01:33  jeecg-boot-master\ant-design-vue-jeecg\README.md
     文件          53  2019-07-15 01:33  jeecg-boot-master\ant-design-vue-jeecg\babel.config.js
     文件         655  2019-07-15 01:33  jeecg-boot-master\ant-design-vue-jeecg\idea.config.js
     文件      692534  2019-07-15 01:33  jeecg-boot-master\ant-design-vue-jeecg\package-lock.json
     文件        2811  2019-07-15 01:33  jeecg-boot-master\ant-design-vue-jeecg\package.json
     目录           0  2019-07-15 01:33  jeecg-boot-master\ant-design-vue-jeecg\public\
     文件       80189  2019-07-15 01:33  jeecg-boot-master\ant-design-vue-jeecg\public\avatar2.jpg
     文件      238852  2019-07-15 01:33  jeecg-boot-master\ant-design-vue-jeecg\public\color.less
     文件        1105  2019-07-15 01:33  jeecg-boot-master\ant-design-vue-jeecg\public\goright.png
     文件        7966  2019-07-15 01:33  jeecg-boot-master\ant-design-vue-jeecg\public\index.html
     文件        8929  2019-07-15 01:33  jeecg-boot-master\ant-design-vue-jeecg\public\logo.png
     目录           0  2019-07-15 01:33  jeecg-boot-master\ant-design-vue-jeecg\public\tinymce\
     目录           0  2019-07-15 01:33  jeecg-boot-master\ant-design-vue-jeecg\public\tinymce\langs\
     文件       11518  2019-07-15 01:33  jeecg-boot-master\ant-design-vue-jeecg\public\tinymce\langs\zh_CN.js
     目录           0  2019-07-15 01:33  jeecg-boot-master\ant-design-vue-jeecg\public\tinymce\skins\
     目录           0  2019-07-15 01:33  jeecg-boot-master\ant-design-vue-jeecg\public\tinymce\skins\lightgray\
     文件       18056  2019-07-15 01:33  jeecg-boot-master\ant-design-vue-jeecg\public\tinymce\skins\lightgray\content.min.css
     文件       47558  2019-07-15 01:33  jeecg-boot-master\ant-design-vue-jeecg\public\tinymce\skins\lightgray\skin.min.css
............此处省略1134个文件信息

评论

共有 条评论