def post(self, opt): """ 用户列表 """ rsp = RspInfo() for case in switch(opt): if case('all'): rsp = self.queryListAll() break if case('list'): rsp = self.queryList() break if case('info'): rsp = self.queryInfo() break if case('append'): rsp = self.append() break if case('remove'): rsp = self.remove() break if case(): # Default self.write_error(404) return self.write(rsp.toDict()) return
def post(self, opt): """ 项目模块信息 """ rsp = RspInfo() for case in switch(opt): if case('query'): rsp = self.query() break if case(): # Default self.write_error(404) return self.write(rsp.toDict()) return
def post(self, opt): rsp = RspInfo() for case in switch(opt): if case('commit'): rsp = self.commit() break if case('list'): rsp = self.list() break if case('handle'): rsp = self.handle() break if case(): # Default self.write_error(404) return self.write(rsp.toDict()) return
def post(self, opt): """ 文件列表 """ rsp = RspInfo() for case in switch(opt): if case('files'): rsp = self.list() break if case('remove'): rsp = self.remove() break if case(): # Default self.write_error(404) return self.write(rsp.toDict()) return
def post(self, opt): """ 项目列表 """ rsp = RspInfo() for case in switch(opt): if case('add'): rsp = self.add() break if case('update'): rsp = self.update() break if case('delete'): rsp = self.delete() break if case(): # Default self.write_error(404) return self.write(rsp.toDict()) return
def post(self, opt): """ 文件列表 """ rsp = RspInfo() for case in switch(opt): if case('append'): rsp = self.append() break if case('list'): rsp = self.list() break if case('record'): rsp = self.record() break if case('status'): rsp = self.status() break if case(): # Default self.write_error(404) return self.write(rsp.toDict()) return