| | |
| | | package com.xcong.excoin.common.response;
|
| | |
|
| | | import com.xcong.excoin.utils.MessageSourceUtils;
|
| | | import io.swagger.annotations.ApiModel;
|
| | | import io.swagger.annotations.ApiModelProperty;
|
| | | import lombok.Data;
|
| | |
| | |
|
| | | private static final int SUCCESS = 0;
|
| | |
|
| | | private static final String SUCCESS_MSG = "success";
|
| | | private static final String SUCCESS_MSG = MessageSourceUtils.getString("result_success_msg");
|
| | |
|
| | | private static final int FAIL = -1;
|
| | |
|
| | |
| | | result.data = data;
|
| | | return result;
|
| | | }
|
| | |
|
| | | public static Result ok(Object data) {
|
| | | Result result = new Result();
|
| | | result.code = SUCCESS;
|