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

Method constructor

prototype/baseComponent.js:13–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11
12export default class BaseComponent {
13 constructor(){
14 this.idList = ['restaurant_id', 'food_id', 'order_id', 'user_id', 'address_id', 'cart_id', 'img_id', 'category_id', 'item_id', 'sku_id', 'admin_id', 'statis_id'];
15 this.imgTypeList = ['shop', 'food', 'avatar','default'];
16 this.uploadImg = this.uploadImg.bind(this)
17 this.qiniu = this.qiniu.bind(this)
18 }
19 async fetch(url = '', data = {}, type = 'GET', resType = 'JSON'){
20 type = type.toUpperCase();
21 resType = resType.toUpperCase();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected