()
| 11 | |
| 12 | export 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(); |
nothing calls this directly
no outgoing calls
no test coverage detected