You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
import {request} from '@/request/index.js'
|
|
|
|
|
|
|
|
|
|
export const get_ai_show_data = (cinema_code, show_date, force, test_date) => {
|
|
|
|
|
let force_string = '0'
|
|
|
|
|
if (force) {
|
|
|
|
|
force_string = '1'
|
|
|
|
|
}
|
|
|
|
|
return request({
|
|
|
|
|
url: 'ai/report',
|
|
|
|
|
method: 'get',
|
|
|
|
|
params: {
|
|
|
|
|
cinema_code: cinema_code,
|
|
|
|
|
show_date: show_date,
|
|
|
|
|
force: force_string,
|
|
|
|
|
test: test_date,
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const get_report_date = () => {
|
|
|
|
|
return request({
|
|
|
|
|
url: 'ai/report_date',
|
|
|
|
|
method: 'get'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const get_test_date_api = (cinema_code, show_date) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: 'ai/test_date',
|
|
|
|
|
method: 'get',
|
|
|
|
|
params: {
|
|
|
|
|
cinema_code: cinema_code,
|
|
|
|
|
show_date: show_date,
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const test_prompt = (cinema_code, show_date, prompt) => {
|
|
|
|
|
const data = {
|
|
|
|
|
'cinema_code': cinema_code,
|
|
|
|
|
'show_date': show_date,
|
|
|
|
|
'prompt': prompt,
|
|
|
|
|
}
|
|
|
|
|
return request({
|
|
|
|
|
url: 'ai/test',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: JSON.stringify(data),
|
|
|
|
|
})
|
|
|
|
|
}
|