You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
492 B
23 lines
492 B
import { queryPage, update } from './base'; |
|
import { get } from '../http/axios'; |
|
const root = 'config'; |
|
export const list = (example) => { |
|
return queryPage(root, example); |
|
}; |
|
|
|
export const set = (config) => { |
|
return update(root, config); |
|
}; |
|
|
|
export const getValue = (key) => { |
|
return new Promise((resolve, reject) => { |
|
get(root + '/' + key, null, true, true).then( |
|
(rsp: any) => { |
|
resolve(rsp); |
|
}, |
|
(err) => { |
|
resolve(null); |
|
} |
|
); |
|
}); |
|
};
|
|
|