parent
5e09b59eca
commit
87348ae6a1
27
readme.md
27
readme.md
|
@ -29,6 +29,7 @@ AD必须使用SSL才能修改密码(这里被坑了N久...)
|
|||
+ 重写了用户账号的格式兼容,现在用户账号可以兼容:username、DOMAIN\username、username@abc.com这三种格式。
|
||||
+ 优化了整体的代码逻辑,去掉一些冗余重复的代码。
|
||||
|
||||
|
||||
## 线上环境需要的基础环境:
|
||||
+ Python 3.8.9 (可自行下载源码包放到项目目录下,使用一键安装)
|
||||
+ Nginx
|
||||
|
@ -58,16 +59,13 @@ AD必须使用SSL才能修改密码(这里被坑了N久...)
|
|||

|
||||
|
||||
|
||||
### 使用脚本自动快速部署,只适合Centos,其它发行版本的Linux请自行修改相关命令。
|
||||
#### 我添加了一个快速自动部署脚本,可快速自动部署完成当前项目上线。
|
||||
把整个项目目录上传到新的服务器上
|
||||
```shell
|
||||
chmod +x auto-install.sh
|
||||
./auto-install.sh
|
||||
```
|
||||
等待所有安装完成
|
||||
## 使用脚本自动部署:
|
||||
使用脚本自动快速部署,只适合Centos,其它发行版本的Linux请自行修改相关命令。
|
||||
|
||||
#### 脚本安装完成之后,按自己实际的配置修改项目配置文件:
|
||||
|
||||
### 把整个项目目录上传到新的服务器上
|
||||
|
||||
#### 先修改配置文件,按自己实际的配置修改项目配置文件:
|
||||
修改pwdselfservice/local_settings.py中的参数,按自己的实际参数修改
|
||||
```` python
|
||||
# ########## AD配置,修改为自己的
|
||||
|
@ -120,10 +118,17 @@ TMPID_COOKIE_AGE = 300
|
|||
# 主页域名,钉钉跳转等需要指定域名,格式:pwd.abc.com。
|
||||
HOME_URL = 'PWD_SELF_SERVICE_DOMAIN'
|
||||
````
|
||||
### 以上配置修改完成之后,则可以通过配置的域名直接访问。
|
||||
### 执行部署脚本
|
||||
```shell
|
||||
chmod +x auto-install.sh
|
||||
./auto-install.sh
|
||||
```
|
||||
等待所有安装完成。
|
||||
#### 以上配置修改完成之后,则可以通过配置的域名直接访问。
|
||||
|
||||
|
||||
# 手动部署
|
||||
|
||||
# 手动部署:
|
||||
#### 自行安装完python3之后,使用python3目录下的pip3进行安装依赖:
|
||||
#### 我自行安装的Python路径为/usr/local/python3
|
||||
|
||||
|
|
|
@ -13,8 +13,16 @@ from .form import CheckForm
|
|||
msg_template = 'messages.html'
|
||||
logger = logging.getLogger('django')
|
||||
|
||||
ad_ops = AdOps()
|
||||
ding_ops = DingDingOps()
|
||||
try:
|
||||
ad_ops = AdOps()
|
||||
except Exception as e:
|
||||
print(e)
|
||||
pass
|
||||
try:
|
||||
ding_ops = DingDingOps()
|
||||
except Exception as e:
|
||||
print(e)
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
def index(request):
|
||||
|
|
|
@ -1,21 +0,0 @@
|
|||
"""
|
||||
Created on 2018-9-17
|
||||
|
||||
@author: xiaoxuan.lp
|
||||
"""
|
||||
|
||||
|
||||
class appinfo(object):
|
||||
def __init__(self, appkey, secret):
|
||||
self.appkey = appkey
|
||||
self.secret = secret
|
||||
|
||||
|
||||
def getDefaultAppInfo():
|
||||
pass
|
||||
|
||||
|
||||
def setDefaultAppInfo(appkey, secret):
|
||||
default = appinfo(appkey, secret)
|
||||
global getDefaultAppInfo
|
||||
getDefaultAppInfo = lambda: default
|
|
@ -1,2 +0,0 @@
|
|||
from api.rest import *
|
||||
from api.base import FileItem
|
|
@ -1,332 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Created on 2018-9-17
|
||||
|
||||
@author: xiaoxuan.lp
|
||||
"""
|
||||
|
||||
try:
|
||||
import http.client
|
||||
except ImportError:
|
||||
import http.client as httplib
|
||||
import base64
|
||||
import hashlib
|
||||
import hmac
|
||||
import itertools
|
||||
import json
|
||||
import mimetypes
|
||||
import time
|
||||
import urllib.error
|
||||
import urllib.parse
|
||||
import urllib.request
|
||||
|
||||
'''
|
||||
定义一些系统变量
|
||||
'''
|
||||
|
||||
SYSTEM_GENERATE_VERSION = "taobao-sdk-python-dynamicVersionNo"
|
||||
|
||||
P_APPKEY = "app_key"
|
||||
P_API = "method"
|
||||
P_ACCESS_TOKEN = "access_token"
|
||||
P_VERSION = "v"
|
||||
P_FORMAT = "format"
|
||||
P_TIMESTAMP = "timestamp"
|
||||
P_SIGN = "sign"
|
||||
P_SIGN_METHOD = "sign_method"
|
||||
P_PARTNER_ID = "partner_id"
|
||||
|
||||
P_CODE = 'errcode'
|
||||
P_MSG = 'errmsg'
|
||||
|
||||
|
||||
def sign(secret, parameters):
|
||||
# ===========================================================================
|
||||
# '''签名方法
|
||||
# @param secret: 签名需要的密钥
|
||||
# @param parameters: 支持字典和string两种
|
||||
# '''
|
||||
# ===========================================================================
|
||||
# 如果parameters 是字典类的话
|
||||
if hasattr(parameters, "items"):
|
||||
keys = list(parameters.keys())
|
||||
keys.sort()
|
||||
|
||||
parameters = "%s%s%s" % (secret,
|
||||
str().join('%s%s' % (key, parameters[key]) for key in keys),
|
||||
secret)
|
||||
sign = hashlib.md5(parameters.encode("utf-8")).hexdigest().upper()
|
||||
return sign
|
||||
|
||||
|
||||
def mixStr(pstr):
|
||||
if isinstance(pstr, str):
|
||||
return pstr
|
||||
elif isinstance(pstr, str):
|
||||
return pstr.encode('utf-8')
|
||||
else:
|
||||
return str(pstr)
|
||||
|
||||
|
||||
class FileItem(object):
|
||||
def __init__(self, filename=None, content=None):
|
||||
self.filename = filename
|
||||
self.content = content
|
||||
|
||||
|
||||
class MultiPartForm(object):
|
||||
"""Accumulate the data to be used when posting a form."""
|
||||
|
||||
def __init__(self):
|
||||
self.form_fields = []
|
||||
self.files = []
|
||||
self.boundary = "PYTHON_SDK_BOUNDARY"
|
||||
return
|
||||
|
||||
def get_content_type(self):
|
||||
return 'multipart/form-data;charset=UTF-8; boundary=%s' % self.boundary
|
||||
|
||||
def add_field(self, name, value):
|
||||
"""Add a simple field to the form data."""
|
||||
self.form_fields.append((name, str(value)))
|
||||
return
|
||||
|
||||
def add_file(self, fieldname, filename, fileHandle, mimetype=None):
|
||||
"""Add a file to be uploaded."""
|
||||
body = fileHandle.read()
|
||||
if mimetype is None:
|
||||
mimetype = mimetypes.guess_type(filename)[0] or 'application/octet-stream'
|
||||
self.files.append((mixStr(fieldname), mixStr(filename), mixStr(mimetype), mixStr(body)))
|
||||
return
|
||||
|
||||
def __str__(self):
|
||||
"""Return a string representing the form data, including attached files."""
|
||||
# Build a list of lists, each containing "lines" of the
|
||||
# request. Each part is separated by a boundary string.
|
||||
# Once the list is built, return a string where each
|
||||
# line is separated by '\r\n'.
|
||||
parts = []
|
||||
part_boundary = '--' + self.boundary
|
||||
|
||||
# Add the form fields
|
||||
parts.extend(
|
||||
[part_boundary,
|
||||
'Content-Disposition: form-data; name="%s"' % name,
|
||||
'Content-Type: text/plain; charset=UTF-8',
|
||||
'',
|
||||
value,
|
||||
]
|
||||
for name, value in self.form_fields
|
||||
)
|
||||
|
||||
# Add the files to upload
|
||||
parts.extend(
|
||||
[part_boundary,
|
||||
'Content-Disposition: form-data; name="%s"; filename="%s"' % (field_name, filename),
|
||||
'Content-Type: %s' % content_type,
|
||||
'Content-Transfer-Encoding: binary',
|
||||
'',
|
||||
body,
|
||||
]
|
||||
for field_name, filename, content_type, body in self.files
|
||||
)
|
||||
|
||||
# Flatten the list and add closing boundary marker,
|
||||
# then return CR+LF separated data
|
||||
flattened = list(itertools.chain(*parts))
|
||||
flattened.append('--' + self.boundary + '--')
|
||||
flattened.append('')
|
||||
return '\r\n'.join(flattened)
|
||||
|
||||
|
||||
class TopException(Exception):
|
||||
# ===========================================================================
|
||||
# 业务异常类
|
||||
# ===========================================================================
|
||||
def __init__(self):
|
||||
self.errcode = None
|
||||
self.errmsg = None
|
||||
self.application_host = None
|
||||
self.service_host = None
|
||||
|
||||
def __str__(self, *args, **kwargs):
|
||||
sb = "errcode=" + mixStr(self.errcode) + \
|
||||
" errmsg=" + mixStr(self.errmsg) + \
|
||||
" application_host=" + mixStr(self.application_host) + \
|
||||
" service_host=" + mixStr(self.service_host)
|
||||
return sb
|
||||
|
||||
|
||||
class RequestException(Exception):
|
||||
# ===========================================================================
|
||||
# 请求连接异常类
|
||||
# ===========================================================================
|
||||
pass
|
||||
|
||||
|
||||
class RestApi(object):
|
||||
# ===========================================================================
|
||||
# Rest api的基类
|
||||
# ===========================================================================
|
||||
|
||||
def __init__(self, url=None):
|
||||
# =======================================================================
|
||||
# 初始化基类
|
||||
# Args @param domain: 请求的域名或者ip
|
||||
# @param port: 请求的端口
|
||||
# =======================================================================
|
||||
if url is None:
|
||||
raise RequestException("domain must not be empty.")
|
||||
if url.find('http://') >= 0:
|
||||
self.__port = 80
|
||||
pathUrl = url.replace('http://', '')
|
||||
elif url.find('https://') >= 0:
|
||||
self.__port = 443
|
||||
pathUrl = url.replace('https://', '')
|
||||
else:
|
||||
raise RequestException("http protocol is not validate.")
|
||||
|
||||
index = pathUrl.find('/')
|
||||
if index > 0:
|
||||
self.__domain = pathUrl[0:index]
|
||||
self.__path = pathUrl[index:]
|
||||
else:
|
||||
self.__domain = pathUrl
|
||||
self.__path = ''
|
||||
|
||||
# print("domain:" + self.__domain + ",path:" + self.__path + ",port:" + str(self.__port))
|
||||
|
||||
def get_request_header(self):
|
||||
return {
|
||||
'Content-type': 'application/json;charset=UTF-8',
|
||||
"Cache-Control": "no-cache",
|
||||
"Connection": "Keep-Alive",
|
||||
}
|
||||
|
||||
def getHttpMethod(self):
|
||||
return "GET"
|
||||
|
||||
def getapiname(self):
|
||||
return ""
|
||||
|
||||
def getMultipartParas(self):
|
||||
return []
|
||||
|
||||
def getTranslateParas(self):
|
||||
return {}
|
||||
|
||||
def _check_requst(self):
|
||||
pass
|
||||
|
||||
def getResponse(self, authrize='', accessKey='', accessSecret='', suiteTicket='', corpId='', timeout=30):
|
||||
# =======================================================================
|
||||
# 获取response结果
|
||||
# =======================================================================
|
||||
if self.__port == 443:
|
||||
connection = http.client.HTTPSConnection(self.__domain, self.__port, None, None, timeout)
|
||||
else:
|
||||
connection = http.client.HTTPConnection(self.__domain, self.__port, timeout)
|
||||
sys_parameters = {
|
||||
P_PARTNER_ID: SYSTEM_GENERATE_VERSION,
|
||||
}
|
||||
if authrize is not None:
|
||||
sys_parameters[P_ACCESS_TOKEN] = authrize
|
||||
application_parameter = self.getApplicationParameters()
|
||||
sign_parameter = sys_parameters.copy()
|
||||
sign_parameter.update(application_parameter)
|
||||
|
||||
header = self.get_request_header()
|
||||
if self.getMultipartParas():
|
||||
form = MultiPartForm()
|
||||
for key, value in list(application_parameter.items()):
|
||||
form.add_field(key, value)
|
||||
for key in self.getMultipartParas():
|
||||
fileitem = getattr(self, key)
|
||||
if fileitem and isinstance(fileitem, FileItem):
|
||||
form.add_file(key, fileitem.filename, fileitem.content)
|
||||
body = str(form)
|
||||
header['Content-type'] = form.get_content_type()
|
||||
else:
|
||||
body = urllib.parse.urlencode(application_parameter)
|
||||
|
||||
if accessKey != '':
|
||||
timestamp = str(int(round(time.time()))) + '000'
|
||||
print(("timestamp:" + timestamp))
|
||||
canonicalString = self.getCanonicalStringForIsv(timestamp, suiteTicket)
|
||||
print(("canonicalString:" + canonicalString))
|
||||
print(("accessSecret:" + accessSecret))
|
||||
signature = self.computeSignature(accessSecret, canonicalString)
|
||||
print(("signature:" + signature))
|
||||
ps = {}
|
||||
ps["accessKey"] = accessKey
|
||||
ps["signature"] = signature
|
||||
ps["timestamp"] = timestamp
|
||||
if suiteTicket != '':
|
||||
ps["suiteTicket"] = suiteTicket
|
||||
if corpId != '':
|
||||
ps["corpId"] = corpId
|
||||
queryStr = urllib.parse.urlencode(ps)
|
||||
if self.__path.find("?") > 0:
|
||||
fullPath = self.__path + "&" + queryStr
|
||||
else:
|
||||
fullPath = self.__path + "?" + queryStr
|
||||
print(("fullPath:" + fullPath))
|
||||
else:
|
||||
if self.__path.find("?") > 0:
|
||||
fullPath = (self.__path + "&access_token=" + str(authrize)) if len(str(authrize)) > 0 else self.__path
|
||||
else:
|
||||
fullPath = (self.__path + "?access_token=" + str(authrize)) if len(str(authrize)) > 0 else self.__path
|
||||
|
||||
if self.getHttpMethod() == "GET":
|
||||
if fullPath.find("?") > 0:
|
||||
fullPath = fullPath + "&" + body
|
||||
else:
|
||||
fullPath = fullPath + "?" + body
|
||||
connection.request(self.getHttpMethod(), fullPath, headers=header)
|
||||
else:
|
||||
if self.getMultipartParas():
|
||||
body = body
|
||||
else:
|
||||
body = json.dumps(application_parameter)
|
||||
connection.request(self.getHttpMethod(), fullPath, body=body, headers=header)
|
||||
response = connection.getresponse()
|
||||
if response.status != 200:
|
||||
raise RequestException('invalid http status ' + str(response.status) + ',detail body:' + str(response.read()))
|
||||
result = response.read()
|
||||
# print("result:" + result)
|
||||
jsonobj = json.loads(result)
|
||||
if P_CODE in jsonobj and jsonobj[P_CODE] != 0:
|
||||
error = TopException()
|
||||
error.errcode = jsonobj[P_CODE]
|
||||
error.errmsg = jsonobj[P_MSG]
|
||||
error.application_host = response.getheader("Application-Host", "")
|
||||
error.service_host = response.getheader("Location-Host", "")
|
||||
raise error
|
||||
return jsonobj
|
||||
|
||||
def getCanonicalStringForIsv(self, timestamp, suiteTicket):
|
||||
if suiteTicket != '':
|
||||
return timestamp + '\n' + suiteTicket
|
||||
else:
|
||||
return timestamp
|
||||
|
||||
def computeSignature(self, secret, canonicalString):
|
||||
message = canonicalString.encode(encoding="utf-8")
|
||||
sec = secret.encode(encoding="utf-8")
|
||||
return str(base64.b64encode(hmac.new(sec, message, digestmod=hashlib.sha256).digest()))
|
||||
|
||||
def getApplicationParameters(self):
|
||||
application_parameter = {}
|
||||
for key, value in self.__dict__.items():
|
||||
if not key.startswith("__") and not key in self.getMultipartParas() and not key.startswith("_RestApi__") and value is not None:
|
||||
if key.startswith("_"):
|
||||
application_parameter[key[1:]] = value
|
||||
else:
|
||||
application_parameter[key] = value
|
||||
# 查询翻译字典来规避一些关键字属性
|
||||
translate_parameter = self.getTranslateParas()
|
||||
for key, value in application_parameter.items():
|
||||
if key in translate_parameter:
|
||||
application_parameter[translate_parameter[key]] = application_parameter[key]
|
||||
del application_parameter[key]
|
||||
return application_parameter
|
|
@ -1,17 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CcoserviceServicegroupAddmemberRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.open_group_id = None
|
||||
self.userid = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.ccoservice.servicegroup.addmember'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CcoserviceServicegroupGetRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.open_group_id = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.ccoservice.servicegroup.get'
|
|
@ -1,15 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpBlazersGetbinddataRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.blazers.getbinddata'
|
|
@ -1,15 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpBlazersGetbizidRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.blazers.getbizid'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2018.07.25
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpBlazersRemovemappingRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.biz_id = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.blazers.removemapping'
|
|
@ -1,15 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpBlazersUnbindRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.blazers.unbind'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpCalendarCreateRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.create_vo = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.calendar.create'
|
|
@ -1,19 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2020.09.18
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpChatbotAddchatbotinstanceRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.chatbot_id = None
|
||||
self.icon_media_id = None
|
||||
self.name = None
|
||||
self.open_conversation_id = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.chatbot.addchatbotinstance'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2018.07.25
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpChatbotCreateorgbotRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.create_chat_bot_model = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.chatbot.createorgbot'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2020.08.17
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpChatbotInstallRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.chatbot_vo = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.chatbot.install'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2020.09.18
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpChatbotListbychatbotidsRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.chatbot_ids = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.chatbot.listbychatbotids'
|
|
@ -1,17 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2018.07.25
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpChatbotListorgbotRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.agent_id = None
|
||||
self.type = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.chatbot.listorgbot'
|
|
@ -1,17 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2020.09.18
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpChatbotListorgbotbytypeandbottypeRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.bot_type = None
|
||||
self.type = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.chatbot.listorgbotbytypeandbottype'
|
|
@ -1,22 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpChatbotUpdatebychatbotidRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.breif = None
|
||||
self.chatbot_id = None
|
||||
self.description = None
|
||||
self.icon = None
|
||||
self.name = None
|
||||
self.preview_media_id = None
|
||||
self.update_type = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.chatbot.updatebychatbotid'
|
|
@ -1,18 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2018.07.25
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpChatbotUpdateorgbotRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.chatbot_id = None
|
||||
self.icon = None
|
||||
self.name = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.chatbot.updateorgbot'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2020.09.21
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpConversationCorpconversionGetconversationRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.open_conversation_id = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.conversation.corpconversion.getconversation'
|
|
@ -1,18 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2020.09.21
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpConversationCorpconversionListmemberRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.count = None
|
||||
self.offset = None
|
||||
self.open_conversation_id = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.conversation.corpconversion.listmember'
|
|
@ -1,17 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpDeptgroupSyncuserRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.dept_id = None
|
||||
self.userid = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.deptgroup.syncuser'
|
|
@ -1,17 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpDeviceManageGetRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.device_id = None
|
||||
self.device_service_id = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.device.manage.get'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpDeviceManageHasbinddeviceRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.device_service_id = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.device.manage.hasbinddevice'
|
|
@ -1,18 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.08.14
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpDeviceManageQuerylistRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.cursor = None
|
||||
self.device_service_id = None
|
||||
self.size = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.device.manage.querylist'
|
|
@ -1,17 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2018.07.25
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpDeviceManageUnbindRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.device_id = None
|
||||
self.device_service_id = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.device.manage.unbind'
|
|
@ -1,18 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpDeviceNickUpdateRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.device_id = None
|
||||
self.device_service_id = None
|
||||
self.new_nick = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.device.nick.update'
|
|
@ -1,21 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpDingCreateRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.attachment = None
|
||||
self.creator_userid = None
|
||||
self.receiver_userids = None
|
||||
self.remind_time = None
|
||||
self.remind_type = None
|
||||
self.text_content = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.ding.create'
|
|
@ -1,19 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpDingReceiverstatusListRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.confirmed_status = None
|
||||
self.ding_id = None
|
||||
self.page_no = None
|
||||
self.page_size = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.ding.receiverstatus.list'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2018.07.25
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpDingTaskCreateRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.task_send_v_o = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.ding.task.create'
|
|
@ -1,18 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpEmpSearchRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.keyword = None
|
||||
self.offset = None
|
||||
self.size = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.emp.search'
|
|
@ -1,15 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2018.07.25
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpEncryptionKeyListRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.encryption.key.list'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpExtAddRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.contact = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.ext.add'
|
|
@ -1,17 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpExtListRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.offset = None
|
||||
self.size = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.ext.list'
|
|
@ -1,17 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpExtListlabelgroupsRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.offset = None
|
||||
self.size = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.ext.listlabelgroups'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpExtUpdateRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.contact = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.ext.update'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpExtcontactCreateRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.contact = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.extcontact.create'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2018.07.25
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpExtcontactDeleteRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.userid = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.extcontact.delete'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpExtcontactGetRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.user_id = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.extcontact.get'
|
|
@ -1,17 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpExtcontactListRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.offset = None
|
||||
self.size = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.extcontact.list'
|
|
@ -1,17 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpExtcontactListlabelgroupsRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.offset = None
|
||||
self.size = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.extcontact.listlabelgroups'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2018.07.25
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpExtcontactUpdateRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.contact = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.extcontact.update'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpHealthStepinfoGetuserstatusRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.userid = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.health.stepinfo.getuserstatus'
|
|
@ -1,18 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpHealthStepinfoListRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.object_id = None
|
||||
self.stat_dates = None
|
||||
self.type = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.health.stepinfo.list'
|
|
@ -1,17 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpHealthStepinfoListbyuseridRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.stat_date = None
|
||||
self.userids = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.health.stepinfo.listbyuserid'
|
|
@ -1,23 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2018.07.25
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpHrmEmployeeAddresumerecordRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.content = None
|
||||
self.k_v_content = None
|
||||
self.pc_url = None
|
||||
self.phone_url = None
|
||||
self.record_time_stamp = None
|
||||
self.title = None
|
||||
self.userid = None
|
||||
self.web_url = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.hrm.employee.addresumerecord'
|
|
@ -1,17 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpHrmEmployeeDelemployeedismissionandhandoverRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.dismission_info_with_hand_over = None
|
||||
self.op_userid = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.hrm.employee.delemployeedismissionandhandover'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpHrmEmployeeGetRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.userid = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.hrm.employee.get'
|
|
@ -1,18 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpHrmEmployeeGetdismissionlistRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.current = None
|
||||
self.op_userid = None
|
||||
self.page_size = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.hrm.employee.getdismissionlist'
|
|
@ -1,17 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpHrmEmployeeModjobinfoRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.hrm_api_job_model = None
|
||||
self.op_userid = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.hrm.employee.modjobinfo'
|
|
@ -1,17 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpHrmEmployeeSetuserworkdataRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.hrm_api_user_data_model = None
|
||||
self.op_userid = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.hrm.employee.setuserworkdata'
|
|
@ -1,15 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2018.07.25
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpInvoiceGettitleRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.invoice.gettitle'
|
|
@ -1,15 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpLivenessGetRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.liveness.get'
|
|
@ -1,21 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpMessageCorpconversationAsyncsendRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.agent_id = None
|
||||
self.dept_id_list = None
|
||||
self.msgcontent = None
|
||||
self.msgtype = None
|
||||
self.to_all_user = None
|
||||
self.userid_list = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.message.corpconversation.asyncsend'
|
|
@ -1,22 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpMessageCorpconversationAsyncsendbycodeRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.agent_id = None
|
||||
self.code = None
|
||||
self.dept_id_list = None
|
||||
self.msgcontent = None
|
||||
self.msgtype = None
|
||||
self.to_all_user = None
|
||||
self.user_id_list = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.message.corpconversation.asyncsendbycode'
|
|
@ -1,17 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpMessageCorpconversationGetsendprogressRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.agent_id = None
|
||||
self.task_id = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.message.corpconversation.getsendprogress'
|
|
@ -1,17 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpMessageCorpconversationGetsendresultRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.agent_id = None
|
||||
self.task_id = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.message.corpconversation.getsendresult'
|
|
@ -1,20 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2018.07.25
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpMessageCorpconversationSendmockRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.message = None
|
||||
self.message_type = None
|
||||
self.microapp_agent_id = None
|
||||
self.to_party = None
|
||||
self.to_user = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.message.corpconversation.sendmock'
|
|
@ -1,21 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpReportListRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.cursor = None
|
||||
self.end_time = None
|
||||
self.size = None
|
||||
self.start_time = None
|
||||
self.template_name = None
|
||||
self.userid = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.report.list'
|
|
@ -1,17 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpRoleAddrolesforempsRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.rolelid_list = None
|
||||
self.userid_list = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.role.addrolesforemps'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpRoleDeleteroleRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.role_id = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.role.deleterole'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpRoleGetrolegroupRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.group_id = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.role.getrolegroup'
|
|
@ -1,17 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpRoleListRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.offset = None
|
||||
self.size = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.role.list'
|
|
@ -1,17 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpRoleRemoverolesforempsRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.roleid_list = None
|
||||
self.userid_list = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.role.removerolesforemps'
|
|
@ -1,18 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpRoleSimplelistRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.offset = None
|
||||
self.role_id = None
|
||||
self.size = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.role.simplelist'
|
|
@ -1,18 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpSearchCorpcontactBaseinfoRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.offset = None
|
||||
self.query = None
|
||||
self.size = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.search.corpcontact.baseinfo'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpSmartdeviceAddfaceRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.face_vo = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.smartdevice.addface'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.09.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpSmartdeviceGetfaceRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.userid = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.smartdevice.getface'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.12.17
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpSmartdeviceHasfaceRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.userid_list = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.smartdevice.hasface'
|
|
@ -1,18 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpSmartdeviceReceptionistPushinfoRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.desc_content = None
|
||||
self.desc_template = None
|
||||
self.microapp_agent_id = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.smartdevice.receptionist.pushinfo'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2018.07.25
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class CorpUserPersonainfoGetRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.userid = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.corp.user.personainfo.get'
|
|
@ -1,17 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class IsvBlazersGeneratecodeRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.biz_id = None
|
||||
self.ext = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.isv.blazers.generatecode'
|
|
@ -1,18 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class IsvCallCalluserRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.authed_corp_id = None
|
||||
self.authed_staff_id = None
|
||||
self.staff_id = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.isv.call.calluser'
|
|
@ -1,17 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class IsvCallGetuserlistRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.offset = None
|
||||
self.start = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.isv.call.getuserlist'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class IsvCallRemoveuserlistRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.staff_id_list = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.isv.call.removeuserlist'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class IsvCallSetuserlistRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.staff_id_list = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.isv.call.setuserlist'
|
|
@ -1,18 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2020.08.05
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class OapiAiMtTranslateRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.query = None
|
||||
self.source_language = None
|
||||
self.target_language = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.oapi.ai.mt.translate'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2021.02.24
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class OapiAlitripBtripAddressGetRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.request = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.oapi.alitrip.btrip.address.get'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.03
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class OapiAlitripBtripApplyGetRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.rq = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.oapi.alitrip.btrip.apply.get'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2020.09.11
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class OapiAlitripBtripApplySearchRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.rq = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.oapi.alitrip.btrip.apply.search'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2020.04.06
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class OapiAlitripBtripApprovalModifyRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.rq = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.oapi.alitrip.btrip.approval.modify'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2021.01.25
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class OapiAlitripBtripApprovalNewRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.rq = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.oapi.alitrip.btrip.approval.new'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.07.01
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class OapiAlitripBtripApprovalUpdateRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.rq = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.oapi.alitrip.btrip.approval.update'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2020.02.19
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class OapiAlitripBtripBindTaobaoGetRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.request = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.oapi.alitrip.btrip.bind.taobao.get'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2018.08.07
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class OapiAlitripBtripCategoryAddressGetRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.rq = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.oapi.alitrip.btrip.category.address.get'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2018.08.07
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class OapiAlitripBtripCostCenterDeleteRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.rq = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.oapi.alitrip.btrip.cost.center.delete'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2018.08.07
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class OapiAlitripBtripCostCenterEntityAddRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.rq = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.oapi.alitrip.btrip.cost.center.entity.add'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2018.08.07
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class OapiAlitripBtripCostCenterEntityDeleteRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.rq = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.oapi.alitrip.btrip.cost.center.entity.delete'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2018.08.07
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class OapiAlitripBtripCostCenterEntitySetRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.rq = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.oapi.alitrip.btrip.cost.center.entity.set'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2018.08.07
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class OapiAlitripBtripCostCenterModifyRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.rq = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.oapi.alitrip.btrip.cost.center.modify'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2018.08.07
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class OapiAlitripBtripCostCenterNewRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.rq = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.oapi.alitrip.btrip.cost.center.new'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2018.08.07
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class OapiAlitripBtripCostCenterQueryRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.rq = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.oapi.alitrip.btrip.cost.center.query'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2018.08.07
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class OapiAlitripBtripCostCenterTransferRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.rq = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.oapi.alitrip.btrip.cost.center.transfer'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2019.10.24
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class OapiAlitripBtripFlightCitySuggestRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.rq = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.oapi.alitrip.btrip.flight.city.suggest'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2021.01.28
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class OapiAlitripBtripFlightOrderSearchRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.rq = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.oapi.alitrip.btrip.flight.order.search'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2021.01.28
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class OapiAlitripBtripHotelOrderSearchRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.rq = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.oapi.alitrip.btrip.hotel.order.search'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2018.08.07
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class OapiAlitripBtripInvoiceSearchRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.rq = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.oapi.alitrip.btrip.invoice.search'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2020.11.30
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class OapiAlitripBtripInvoiceSettingAddRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.rq = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.oapi.alitrip.btrip.invoice.setting.add'
|
|
@ -1,16 +0,0 @@
|
|||
"""
|
||||
Created by auto_sdk on 2020.11.30
|
||||
"""
|
||||
from api.base import RestApi
|
||||
|
||||
|
||||
class OapiAlitripBtripInvoiceSettingDeleteRequest(RestApi):
|
||||
def __init__(self, url=None):
|
||||
RestApi.__init__(self, url)
|
||||
self.request = None
|
||||
|
||||
def getHttpMethod(self):
|
||||
return 'POST'
|
||||
|
||||
def getapiname(self):
|
||||
return 'dingtalk.oapi.alitrip.btrip.invoice.setting.delete'
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue