tencent_kit

This commit is contained in:
v7lin
2019-11-14 22:46:11 +08:00
parent 1a678b85e0
commit 42c6c49154
78 changed files with 3221 additions and 1134 deletions

View File

@ -0,0 +1,20 @@
import 'package:json_annotation/json_annotation.dart';
abstract class TencentApiResp {
TencentApiResp({
this.ret,
this.msg,
});
/// 网络请求成功发送至服务器,并且服务器返回数据格式正确
/// 这里包括所请求业务操作失败的情况,例如没有授权等原因导致
static const int RET_SUCCESS = 0;
@JsonKey(
defaultValue: RET_SUCCESS,
)
final int ret;
final String msg;
bool isSuccessful() => ret == RET_SUCCESS;
}