创建仓库
This commit is contained in:
18
Entity/DeviceModel.py
Normal file
18
Entity/DeviceModel.py
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
# 设备模型
|
||||
class DeviceModel(object):
|
||||
def __init__(self, deviceId, screenPort, type):
|
||||
super(DeviceModel, self).__init__()
|
||||
self.deviceId = deviceId
|
||||
self.screenPort = screenPort
|
||||
# 1 添加 2删除
|
||||
self.type = type
|
||||
|
||||
|
||||
# 转字典
|
||||
def toDict(self):
|
||||
return {
|
||||
'deviceId': self.deviceId,
|
||||
'screenPort': self.screenPort,
|
||||
'type': self.type
|
||||
}
|
||||
16
Entity/ResultData.py
Normal file
16
Entity/ResultData.py
Normal file
@@ -0,0 +1,16 @@
|
||||
import json
|
||||
|
||||
# 返回数据模型
|
||||
class ResultData(object):
|
||||
def __init__(self, code=200, data=None, msg="获取成功"):
|
||||
super(ResultData, self).__init__()
|
||||
self.code = code
|
||||
self.data = data
|
||||
self.msg = msg
|
||||
|
||||
def toJson(self):
|
||||
return json.dumps({
|
||||
"code": self.code,
|
||||
"data": self.data,
|
||||
"msg": self.msg
|
||||
}, ensure_ascii=False) # ensure_ascii=False 确保中文不会被转义
|
||||
4
Entity/Variables.py
Normal file
4
Entity/Variables.py
Normal file
@@ -0,0 +1,4 @@
|
||||
# Tik Tok app bundle id
|
||||
tikTokApp = "com.zhiliaoapp.musically"
|
||||
# wda apple bundle id
|
||||
WdaAppBundleId = "com.vv.wda.xctrunner"
|
||||
Reference in New Issue
Block a user