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



/**
 * 示例数据库服务对象基类
 *
 * @export
 * @class IBIZSampleServiceBase
 * @extends {EntityServie}
 */
export default class IBIZSampleServiceBase extends EntityService {

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

    /**
     * 初始化基础数据
     *
     * @memberof IBIZSampleServiceBase
     */
    public initBasicData(){
        this.APPLYDEKEY ='ibizsample';
        this.APPDEKEY = 'ibizsampleid';
        this.APPDENAME = 'ibizsamples';
        this.APPDETEXT = 'ibizsamplename';
        this.APPNAME = 'web';
        this.SYSTEMNAME = 'demosys';
    }

// 实体接口

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

            return res;
    }

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

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