Commit cc3740ae by 蒋勇

d

parent b7e8f754
......@@ -61,6 +61,10 @@ class RptAPI extends APIBase{
}
]
}*/
async deleteUrlsCache(pobj,query){
var x=await this.rptService.deleteUrlsCache();
return system.getResult({});
}
async saveRpt(pobj,query){
var x=await this.rptService.saveRpt(pobj);
return system.getResult(x);
......
......@@ -6,6 +6,10 @@ class RptTypeService extends ServiceBase{
super("rpt",ServiceBase.getDaoName(RptTypeService));
this.redisClient=system.getObject("util.redisClient");
}
async deleteUrlsCache(){
await this.redisClient.delete("docurls");
return {};
}
async saveRptHistory(hs){
var self=this;
return this.db.transaction(async t=>{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment