一、原版
1慢哈、PBInterfaceChangeLog(interfaceId,content required) --> void
有id蔓钟,content不能為空
export function interfaceChangeLogAdd (interfaceId, content) {
const pbReq = proto.create('fw.PBInterfaceChangeLog', { interfaceId: +interfaceId, content })
return request('apiDocumentInterfaceChangeLogAdd', pbReq)
}
interfaceChangeLogAdd(this.selectedId, this.form.content)
.then((res) => {
console.log(res)
}).catch((err) => {
console.log(err)
})
2、只傳id卵贱,PBIntValue(interfaceId) --> void
export function interfaceDeprecated (interfaceId) {
const pbReq = proto.create('framework.PBIntValue', { value: +interfaceId })
return request('apiDocumentInterfaceDeprecated', pbReq)
}
interfaceDeprecated(id)
.then(() => {
console.log('成功棄用')
}).catch((err) => {
console.log(err)
})
二滥沫、新版
1、PBRenewalSendNotifyReq(renewalId,contacts required) --> void
customerApi.sendNotifyReq = (id, contacts) => {
const pbReq = proto.create('fw.PBRenewalSendNotifyReq', { renewalId: Number(id), contacts })
return request('renewalSendNotify', pbReq)
}
return customerApi.getCustomerContactList(this.selectedRow.customer.user.id).then((res) => {
this.contacts = res.contacts
}).catch(this.errorHandler)