MCPcopy Create free account
hub / github.com/bailicangdu/node-elm / Explain

Class Explain

controller/v3/explain.js:5–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3import ExplainModel from '../../models/v3/explain'
4
5class Explain {
6 constructor(){
7
8 }
9 async getExpalin(req, res, next){
10 try{
11 const explain = await ExplainModel.findOne();
12 res.send(explain.data)
13 }catch(err){
14 console.log('获取服务中心数据失败', err);
15 res.send({
16 status: 0,
17 type: 'ERROR_GET_SERVER_DATA',
18 message: '获取服务中心数据失败'
19 })
20 }
21 }
22}
23
24export default new Explain()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected