瀏覽代碼

更新接口

loki.wu 2 年之前
父節點
當前提交
15e4f0aa00
共有 3 個文件被更改,包括 13 次插入0 次删除
  1. 3 0
      lib/services/authentication.m.dart
  2. 5 0
      lib/services/device.dart
  3. 5 0
      lib/services/user.dart

+ 3 - 0
lib/services/authentication.m.dart

@@ -6239,6 +6239,9 @@ enum CustomerRpcCode {
 	MessageCodeIsEmpty,
 	UpdateMessagesStatusFail,
 	MessageCodesIsEmpty,
+	ExceedMaxUser,
+	ExceedMaxDevice,
+	ServerIsDisabled,
 }
 
 class ValidateTokenResult {

+ 5 - 0
lib/services/device.dart

@@ -156,5 +156,10 @@ class DeviceService extends JsonRpcClientBase {
 		return result;
 	}
 
+	Future<int> getActiveDeviceCount() async {
+		var rpcRst = await call("GetActiveDeviceCount", );
+		return rpcRst;
+	}
+
 }
 

+ 5 - 0
lib/services/user.dart

@@ -123,5 +123,10 @@ class UserService extends JsonRpcClientBase {
 		return rpcRst;
 	}
 
+	Future<int> getActiveUsersCount() async {
+		var rpcRst = await call("GetActiveUsersCount", );
+		return rpcRst;
+	}
+
 }