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



/**
 * 订单类型服务对象基类
 *
 * @export
 * @class IBIZOrderTypeServiceBase
 * @extends {EntityServie}
 */
export default class IBIZOrderTypeServiceBase extends EntityService {

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

    /**
     * 初始化基础数据
     *
     * @memberof IBIZOrderTypeServiceBase
     */
    public initBasicData(){
        this.APPLYDEKEY ='ibizordertype';
        this.APPDEKEY = 'ibizordertypeid';
        this.APPDENAME = 'ibizordertypes';
        this.APPDETEXT = 'ibizordertypename';
        this.APPNAME = 'web';
        this.SYSTEMNAME = 'demosys';
    }

// 实体接口

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

            return res;
    }

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

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