This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
k18-ntcs-web-argus-service/src/main/java/com/nis/restful/RestConverter.java
zhangdongxu 13acafd43d 上传代码
2017-12-19 14:55:52 +08:00

21 lines
295 B
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.nis.restful;
public interface RestConverter<T> {
/**
* 将错误对象转化成map用于页面的输出
* @return
*/
T convert(RestResult re);
/**
* 转化为json字串
* @param re
* @return
*/
String convertToJson(RestResult re);
}