import { Http,Util } from '@/utils';
import EntityService from '../entity-service';



/**
 * 存储服务对象基类
 *
 * @export
 * @class IBIZStorageServiceBase
 * @extends {EntityServie}
 */
export default class IBIZStorageServiceBase extends EntityService {

    /**
     * Creates an instance of  IBIZStorageServiceBase.
     * 
     * @param {*} [opts={}]
     * @memberof  IBIZStorageServiceBase
     */
    constructor(opts: any = {}) {
        super(opts);
    }

    /**
     * 初始化基础数据
     *
     * @memberof IBIZStorageServiceBase
     */
    public initBasicData(){
        this.APPLYDEKEY ='ibizstorage';
        this.APPDEKEY = 'ibizstorageid';
        this.APPDENAME = 'ibizstorages';
        this.APPDETEXT = 'ibizstoragename';
        this.APPNAME = 'web';
        this.SYSTEMNAME = 'demosys';
    }

// 实体接口

    /**
     * Select接口方法
     *
     * @param {*} [context={}]
     * @param {*} [data={}]
     * @param {boolean} [isloading]
     * @returns {Promise<any>}
     * @memberof IBIZStorageServiceBase
     */
    public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
            let res:any = Http.getInstance().post(`/ibizstorages/${context.ibizstorage}/select`,data,isloading);

            return res;
    }

    /**
     * FetchDefault接口方法
     *
     * @param {*} [context={}]
     * @param {*} [data={}]
     * @param {boolean} [isloading]
     * @returns {Promise<any>}
     * @memberof IBIZStorageServiceBase
     */
    public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
    }
}