| 123456789101112131415161718192021222324252627 |
- const {searchHandle} = require('../tools/searchSql');
- const {handle} = require('../tools/handle');
- const d_solution = require("../database/d_solution");
- const log = require("../logger").logger("c_solution","info")
- /**
- * 加载解决方案
- * @param key
- * @param p
- * @param l
- * @returns {Promise<*[]>}
- */
- async function loadSolution(key,p,l){
- p = p || 1;
- l = l || 10;
- let [err,res] = await handle(d_solution.loadSolution(key, p, l));
- if(err){
- console.log(err);
- return [err,null];
- }
- return [null,res];
- }
- module.exports = {
- loadSolution
- }
|