
// const apiurl = `http://192.168.31.147:3001/ai-camera`
// const apiurl = `http://test.refinecolor.com/ai-camera`
const apiurl = `http://ai.colorpark.cn/ai-camera`
// const apiurl = `http://tprint-dev.refinecolor.com/ai-camera`

type ApiEndpoints = {
    binds: string
    languages: string
    list: string
    category: string
    render: string
    queryRenderResult: string
    goodscategory: string
    ossUpload:string
    creatework:string
    getmachines:string
    getgoods:string
    uploadQrcode:string	
    uploadurl:string
    getMachineApp:string
    guestLogin:string
    print:string
    createorder:string
    queryStatus:string
    cancel:string
    queueList:string
    ads:string
    shareQrcode:string
}

const api: ApiEndpoints = {
    binds: `${apiurl}/index/binds`,
    languages: `${apiurl}/index/languages`,
    list: `${apiurl}/aiModel/list`,
    category: `${apiurl}/aiModel/category`,
    render: `${apiurl}/aiModel/render`,
    queryRenderResult: `${apiurl}/aiModel/queryRenderResult/`,
    goodscategory: `${apiurl}/index/category`,
    ossUpload: `${apiurl}/index/ossUpload`,
    creatework: `${apiurl}/works/create`,
    getmachines: `${apiurl}/index/machines`,
    getgoods: `${apiurl}/index/goods`,
    uploadQrcode: `${apiurl}/index/uploadQrcode`,
    uploadurl: `${apiurl}/aiModel/render`,
    getMachineApp: `${apiurl}/index/getMachineApp`,
    guestLogin: `${apiurl}/index/guestLogin`,
    print: `${apiurl}/aiModel/print`,
    createorder: `${apiurl}/order/create`,
    queryStatus: `${apiurl}/order/queryStatus/`,
    cancel: `${apiurl}/aiModel/cancel/`,
    queueList: `${apiurl}/index/queueList`,
    ads: `${apiurl}/index/ads`,
    shareQrcode: `${apiurl}/index/shareQrcode`,
}

export default api