1
0

nightly commit

This commit is contained in:
2021-02-02 20:49:01 +08:00
parent 7e7367c32a
commit 0eeea13277

View File

@@ -111,71 +111,125 @@ def api_common_changePasswordHandle():
@app.route('/api/calendar/getFull', methods=['POST']) @app.route('/api/calendar/getFull', methods=['POST'])
def api_calendar_getFullHandle(): def api_calendar_getFullHandle():
pass return SmartDbCaller(calendar_db.calendar_getFull,
(('token', str, False),
('startDateTime', int, False),
('endDateTime', int, False)))
@app.route('/api/calendar/getList', methods=['POST']) @app.route('/api/calendar/getList', methods=['POST'])
def api_calendar_getListHandle(): def api_calendar_getListHandle():
pass return SmartDbCaller(calendar_db.calendar_getList,
(('token', str, False),
('startDateTime', int, False),
('endDateTime', int, False)))
@app.route('/api/calendar/getDetail', methods=['POST']) @app.route('/api/calendar/getDetail', methods=['POST'])
def api_calendar_getDetailHandle(): def api_calendar_getDetailHandle():
pass return SmartDbCaller(calendar_db.calendar_getDetail,
(('token', str, False),
('uuid', str, False)))
@app.route('/api/calendar/update', methods=['POST']) @app.route('/api/calendar/update', methods=['POST'])
def api_calendar_updateHandle(): def api_calendar_updateHandle():
pass return SmartDbCaller(calendar_db.calendar_update,
(('token', str, False),
('uuid', str, False),
('belongTo', str, True),
('title', str, True),
('description', str, True),
('eventDateTimeStart', int, True),
('eventDateTimeEnd', int, True),
('loopRules', str, True),
('timezoneOffset', int, True),
('lastChange', str, False)))
@app.route('/api/calendar/add', methods=['POST']) @app.route('/api/calendar/add', methods=['POST'])
def api_calendar_addHandle(): def api_calendar_addHandle():
pass return SmartDbCaller(calendar_db.calendar_add,
(('token', str, False),
('belongTo', str, False),
('title', str, False),
('description', str, False),
('eventDateTimeStart', int, False),
('eventDateTimeEnd', int, False),
('loopRules', str, False),
('timezoneOffset', int, False),
('lastChange', str, False)))
@app.route('/api/calendar/delete', methods=['POST']) @app.route('/api/calendar/delete', methods=['POST'])
def api_calendar_deleteHandle(): def api_calendar_deleteHandle():
pass return SmartDbCaller(calendar_db.calendar_delete,
(('token', str, False),
('uuid', str, False),
('lastChange', str, False)))
# ================================ collection # ================================ collection
@app.route('/api/collection/getFullOwn', methods=['POST']) @app.route('/api/collection/getFullOwn', methods=['POST'])
def api_collection_getFullOwnHandle(): def api_collection_getFullOwnHandle():
pass return SmartDbCaller(calendar_db.collection_getFullOwn,
(('token', str, False), ))
@app.route('/api/collection/getListOwn', methods=['POST']) @app.route('/api/collection/getListOwn', methods=['POST'])
def api_collection_getListOwnHandle(): def api_collection_getListOwnHandle():
pass return SmartDbCaller(calendar_db.collection_getListlOwn,
(('token', str, False), ))
@app.route('/api/collection/getDetailOwn', methods=['POST']) @app.route('/api/collection/getDetailOwn', methods=['POST'])
def api_collection_getDetailOwnHandle(): def api_collection_getDetailOwnHandle():
pass return SmartDbCaller(calendar_db.collection_getDetailOwn,
(('token', str, False),
('uuid', str, False)))
@app.route('/api/collection/addOwn', methods=['POST']) @app.route('/api/collection/addOwn', methods=['POST'])
def api_collection_addOwnHandle(): def api_collection_addOwnHandle():
pass return SmartDbCaller(calendar_db.collection_addOwn,
(('token', str, False),
('name', str, False)))
@app.route('/api/collection/updateOwn', methods=['POST']) @app.route('/api/collection/updateOwn', methods=['POST'])
def api_collection_updateOwnHandle(): def api_collection_updateOwnHandle():
pass return SmartDbCaller(calendar_db.collection_updateOwn,
(('token', str, False),
('uuid', str, False),
('name', str, False),
('lastChange', str, False)))
@app.route('/api/collection/deleteOwn', methods=['POST']) @app.route('/api/collection/deleteOwn', methods=['POST'])
def api_collection_deleteOwnHandle(): def api_collection_deleteOwnHandle():
pass return SmartDbCaller(calendar_db.collection_deleteOwn,
(('token', str, False),
('uuid', str, False),
('lastChange', str, False)))
@app.route('/api/collection/getSharing', methods=['POST']) @app.route('/api/collection/getSharing', methods=['POST'])
def api_collection_getSharingHandle(): def api_collection_getSharingHandle():
pass return SmartDbCaller(calendar_db.collection_getSharing,
(('token', str, False),
('uuid', str, False)))
@app.route('/api/collection/deleteSharing', methods=['POST']) @app.route('/api/collection/deleteSharing', methods=['POST'])
def api_collection_deleteSharingHandle(): def api_collection_deleteSharingHandle():
pass return SmartDbCaller(calendar_db.collection_deleteSharing,
(('token', str, False),
('uuid', str, False),
('target', str, False),
('lastChange', str, False)))
@app.route('/api/collection/addSharing', methods=['POST']) @app.route('/api/collection/addSharing', methods=['POST'])
def api_collection_addSharingHandle(): def api_collection_addSharingHandle():
pass return SmartDbCaller(calendar_db.collection_addSharing,
(('token', str, False),
('uuid', str, False),
('target', str, False),
('lastChange', str, False)))
@app.route('/api/collection/getShared', methods=['POST']) @app.route('/api/collection/getShared', methods=['POST'])
def api_collection_getSharedHandle(): def api_collection_getSharedHandle():
pass return SmartDbCaller(calendar_db.collection_getShared,
(('token', str, False), ))
# ================================ todo # ================================ todo
@@ -220,19 +274,28 @@ def api_todo_deleteHandle():
@app.route('/api/admin/get', methods=['POST']) @app.route('/api/admin/get', methods=['POST'])
def api_admin_getHandle(): def api_admin_getHandle():
pass return SmartDbCaller(calendar_db.admin_get,
(('token', str, False), ))
@app.route('/api/admin/add', methods=['POST']) @app.route('/api/admin/add', methods=['POST'])
def api_admin_addHandle(): def api_admin_addHandle():
pass return SmartDbCaller(calendar_db.admin_add,
(('token', str, False),
('username', str, False)))
@app.route('/api/admin/update', methods=['POST']) @app.route('/api/admin/update', methods=['POST'])
def api_admin_updateHandle(): def api_admin_updateHandle():
pass return SmartDbCaller(calendar_db.admin_update,
(('token', str, False),
('username', str, False),
('password', str, True),
('isAdmin', bool, True)))
@app.route('/api/admin/delete', methods=['POST']) @app.route('/api/admin/delete', methods=['POST'])
def api_admin_deleteHandle(): def api_admin_deleteHandle():
pass return SmartDbCaller(calendar_db.admin_delete,
(('token', str, False),
('username', str, False)))
# =============================================main run # =============================================main run