public class ApiController extends Object
ApiResultEST API 公共控制器
ApiController()
protected ApiResult<Object>
fail(ApiCode apiCode)
fail(String msg)
protected <T> ApiResult<T>
ok(T data)
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ApiController()
protected <T> ApiResult<T> ok(T data)
请求成功
T
data
protected ApiResult<Object> fail(String msg)
请求失败
msg
protected ApiResult<Object> fail(ApiCode apiCode)
apiCode
Copyright © 2019. All rights reserved.