Last active
November 21, 2020 12:59
-
-
Save maliming/c204b2e9ec7644dc987bfe0a634eba1d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// module test | |
(function(){ | |
// controller volo.abp.aspNetCore.mvc.uI.bootstrap.demo.test | |
(function(){ | |
abp.utils.createNamespace(window, 'volo.abp.aspNetCore.mvc.uI.bootstrap.demo.test'); | |
volo.abp.aspNetCore.mvc.uI.bootstrap.demo.test.getMethod1 = function(name, ajaxParams) { | |
return abp.ajax($.extend(true, { | |
url: abp.appPath + 'Test/GetMethod1' + abp.utils.buildQueryString([{ name: 'n.a.m.e', value: name }]) + '', | |
type: 'GET' | |
}, ajaxParams)); | |
}; | |
volo.abp.aspNetCore.mvc.uI.bootstrap.demo.test.getMethod2 = function(input, ajaxParams) { | |
return abp.ajax($.extend(true, { | |
url: abp.appPath + 'Test/GetMethod2' + abp.utils.buildQueryString([{ name: 'my.Name', value: input['my.Name'] }, { name: 'my_Age', value: input['my_Age'] }]) + '', | |
type: 'GET' | |
}, ajaxParams)); | |
}; | |
volo.abp.aspNetCore.mvc.uI.bootstrap.demo.test.getMethod3 = function(input, ajaxParams) { | |
return abp.ajax($.extend(true, { | |
url: abp.appPath + 'Test/GetMethod3' + abp.utils.buildQueryString([{ name: 'my.Name', value: input['my.Name'] }, { name: 'my_Age', value: input['my_Age'] }, { name: 'inner.Na.me', value: input['inner.Na.me'] }, { name: 'my.Inner.Age', value: input['my.Inner.Age'] }]) + '', | |
type: 'GET' | |
}, ajaxParams)); | |
}; | |
volo.abp.aspNetCore.mvc.uI.bootstrap.demo.test.getMethod4 = function(id, name, input, ajaxParams) { | |
return abp.ajax($.extend(true, { | |
url: abp.appPath + 'Test/GetMethod4/by/' + id + '/' + name + '' + abp.utils.buildQueryString([{ name: 'my.Name', value: input['my.Name'] }, { name: 'my_Age', value: input['my_Age'] }, { name: 'inner.Na.me', value: input['inner.Na.me'] }, { name: 'my.Inner.Age', value: input['my.Inner.Age'] }]) + '', | |
type: 'GET' | |
}, ajaxParams)); | |
}; | |
volo.abp.aspNetCore.mvc.uI.bootstrap.demo.test.getMethod5 = function(version, input, ajaxParams) { | |
return abp.ajax($.extend(true, { | |
url: abp.appPath + 'Test/GetMethod5' + abp.utils.buildQueryString([{ name: 'my.Name', value: input['my.Name'] }, { name: 'my_Age', value: input['my_Age'] }, { name: 'inner.Na.me', value: input['inner.Na.me'] }, { name: 'my.Inner.Age', value: input['my.Inner.Age'] }]) + '', | |
type: 'GET', | |
headers: { | |
'v.s': version | |
} | |
}, ajaxParams)); | |
}; | |
volo.abp.aspNetCore.mvc.uI.bootstrap.demo.test.getMethod6 = function(myName, version, input, ajaxParams) { | |
return abp.ajax($.extend(true, { | |
url: abp.appPath + 'Test/GetMethod6/by/' + myName + '' + abp.utils.buildQueryString([{ name: 'my.Name', value: input['my.Name'] }, { name: 'my_Age', value: input['my_Age'] }, { name: 'inner.Na.me', value: input['inner.Na.me'] }, { name: 'my.Inner.Age', value: input['my.Inner.Age'] }]) + '', | |
type: 'GET', | |
headers: { | |
'v.s': version | |
} | |
}, ajaxParams)); | |
}; | |
volo.abp.aspNetCore.mvc.uI.bootstrap.demo.test.getMethod7 = function(myName, version, input, ajaxParams) { | |
return abp.ajax($.extend(true, { | |
url: abp.appPath + 'Test/GetMethod7/with/' + myName + '', | |
type: 'GET', | |
headers: { | |
'v.s': version | |
}, | |
data: JSON.stringify(input) | |
}, ajaxParams)); | |
}; | |
volo.abp.aspNetCore.mvc.uI.bootstrap.demo.test.postMethod1 = function(name, ajaxParams) { | |
return abp.ajax($.extend(true, { | |
url: abp.appPath + 'Test/PostMethod1', | |
type: 'POST', | |
data: 'n.a.m.e=' + name | |
}, $.extend(true, {}, ajaxParams, { contentType: 'application/x-www-form-urlencoded; charset=UTF-8' }))); | |
}; | |
volo.abp.aspNetCore.mvc.uI.bootstrap.demo.test.postMethod2 = function(input, ajaxParams) { | |
return abp.ajax($.extend(true, { | |
url: abp.appPath + 'Test/PostMethod2', | |
type: 'POST', | |
data: 'input.My.Name=' + input['my.Name'] + '&' + 'input.My_Age=' + input['my_Age'] | |
}, $.extend(true, {}, ajaxParams, { contentType: 'application/x-www-form-urlencoded; charset=UTF-8' }))); | |
}; | |
volo.abp.aspNetCore.mvc.uI.bootstrap.demo.test.postMethod3 = function(input, ajaxParams) { | |
return abp.ajax($.extend(true, { | |
url: abp.appPath + 'Test/PostMethod3', | |
type: 'POST', | |
data: 'input.My.Name=' + input['my.Name'] + '&' + 'input.My_Age=' + input['my_Age'] + '&' + 'input.Inner.Na.me=' + input['inner.Na.me'] + '&' + 'input.My.Inner.Age=' + input['my.Inner.Age'] | |
}, $.extend(true, {}, ajaxParams, { contentType: 'application/x-www-form-urlencoded; charset=UTF-8' }))); | |
}; | |
volo.abp.aspNetCore.mvc.uI.bootstrap.demo.test.postMethod4 = function(id, name, input, ajaxParams) { | |
return abp.ajax($.extend(true, { | |
url: abp.appPath + 'Test/PostMethod4/by/' + id + '/' + name + '', | |
type: 'POST', | |
data: 'input.My.Name=' + input['my.Name'] + '&' + 'input.My_Age=' + input['my_Age'] + '&' + 'input.Inner.Na.me=' + input['inner.Na.me'] + '&' + 'input.My.Inner.Age=' + input['my.Inner.Age'] | |
}, $.extend(true, {}, ajaxParams, { contentType: 'application/x-www-form-urlencoded; charset=UTF-8' }))); | |
}; | |
volo.abp.aspNetCore.mvc.uI.bootstrap.demo.test.postMethod5 = function(version, input, ajaxParams) { | |
return abp.ajax($.extend(true, { | |
url: abp.appPath + 'Test/PostMethod5', | |
type: 'POST', | |
headers: { | |
'v.s': version | |
}, | |
data: 'input.My.Name=' + input['my.Name'] + '&' + 'input.My_Age=' + input['my_Age'] + '&' + 'input.Inner.Na.me=' + input['inner.Na.me'] + '&' + 'input.My.Inner.Age=' + input['my.Inner.Age'] | |
}, $.extend(true, {}, ajaxParams, { contentType: 'application/x-www-form-urlencoded; charset=UTF-8' }))); | |
}; | |
volo.abp.aspNetCore.mvc.uI.bootstrap.demo.test.postMethod6 = function(myName, version, input, ajaxParams) { | |
return abp.ajax($.extend(true, { | |
url: abp.appPath + 'Test/PostMethod6/by/' + myName + '', | |
type: 'POST', | |
headers: { | |
'v.s': version | |
}, | |
data: 'input.My.Name=' + input['my.Name'] + '&' + 'input.My_Age=' + input['my_Age'] + '&' + 'input.Inner.Na.me=' + input['inner.Na.me'] + '&' + 'input.My.Inner.Age=' + input['my.Inner.Age'] | |
}, $.extend(true, {}, ajaxParams, { contentType: 'application/x-www-form-urlencoded; charset=UTF-8' }))); | |
}; | |
volo.abp.aspNetCore.mvc.uI.bootstrap.demo.test.postMethod7 = function(myName, version, input, ajaxParams) { | |
return abp.ajax($.extend(true, { | |
url: abp.appPath + 'Test/PostMethod7/with/' + myName + '', | |
type: 'POST', | |
headers: { | |
'v.s': version | |
}, | |
data: JSON.stringify(input) | |
}, ajaxParams)); | |
}; | |
})(); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment