Skip to content

Result.ok #1487

Closed
Closed
@hsb786

Description

@hsb786
版本号:2.2.0
问题描述:

Result.ok(Object data) 建议改成用泛型,不然swagger文档返回的一直是object
图片

截图&代码:

图片

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

友情提示: 未按格式要求发帖,会直接删掉。

Activity

J-cafe

J-cafe commented on Jul 31, 2020

@J-cafe

下个版本更新

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @zhangdaiscott@hsb786@J-cafe

        Issue actions

          Result.ok · Issue #1487 · jeecgboot/JeecgBoot