Interface SAV
This commit is contained in:
@@ -15,9 +15,22 @@ export default {
|
||||
return response.json();
|
||||
},
|
||||
|
||||
async getStandardMessageList(id) {
|
||||
const apiUrl = '/App/api.php?prj=pharmamp&controller=TicketingController&method=getStandardMessageList&id_business=' + id
|
||||
|
||||
if (import.meta.env.DEV) {
|
||||
console.log(apiUrl)
|
||||
}
|
||||
|
||||
const response = await fetch(apiUrl)
|
||||
|
||||
if (import.meta.env.DEV) {
|
||||
console.log(response.clone().text())
|
||||
}
|
||||
|
||||
return response.json();
|
||||
},
|
||||
async getMessages(code, id) {
|
||||
// code =2641056
|
||||
// id = 66088
|
||||
const apiUrl = '/App/api.php?prj=pharmamp&controller=TicketingController&method=getMessages&code_business=' + code + '&id_business=' + id
|
||||
|
||||
if (import.meta.env.DEV) {
|
||||
@@ -34,7 +47,7 @@ export default {
|
||||
},
|
||||
async saveMessage(id, quill, replyOption) {
|
||||
const apiUrl = '/App/api.php?prj=pharmamp&controller=TicketingController&method=saveMessage'
|
||||
if (import.meta.env.DEV) {
|
||||
if (import.meta.env.DEV) {
|
||||
console.log(apiUrl)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user