123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324 |
- const prefix = '/api/channel'
-
- const apis = {
- user: {
- current: {
- url: `${prefix}/current`,
- method: 'GET',
- action: 'channel',
- },
- login: {
- url: `${prefix}/signin`,
- method: 'POST',
- action: 'channel',
- login: true
- },
- logoff: {
- url: `${prefix}/signout`,
- method: 'POST',
- action: 'channel',
- logout: true
- },
- },
- member: {
- list: {
- url: `${prefix}/taUser`,
- method: 'GET',
- action: 'channel',
- },
- get: {
- url: `${prefix}/taUser/:id`,
- method: 'GET',
- action: 'channel',
- },
- save: {
- url: `${prefix}/taUser`,
- method: 'POST',
- action: 'channel',
- },
- update: {
- url: `${prefix}/taUser/:id`,
- method: 'PUT',
- action: 'channel',
- },
- },
- channel: {
- list: {
- url: `${prefix}/taChannel`,
- method: 'GET',
- action: 'channel',
- },
- put: {
- url: `${prefix}/taChannel/:id`,
- method: 'PUT',
- action: 'channel',
- },
- post: {
- url: `${prefix}/taChannel`,
- method: 'POST',
- action: 'channel',
- },
- get: {
- url: `${prefix}/taChannel/:id`,
- method: 'GET',
- action: 'channel',
- },
- },
- sample: {
- list: {
- url: `${prefix}/taH5Demand`,
- method: 'GET',
- action: 'channel',
- },
- put: {
- url: `${prefix}/taH5Demand/batch`,
- method: 'PUT',
- action: 'channel',
- },
- get: {
- url: `${prefix}/taH5Demand/:id`,
- method: 'GET',
- action: 'channel',
- },
- update: {
- url: `${prefix}/taH5Demand/update/:id`,
- method: 'PUT',
- action: 'channel',
- },
- h5list: {
- url: `${prefix}/h5Sample/list`,
- method: 'GET',
- action: 'channel',
- },
- addh5: {
- url: `${prefix}/h5Sample/add`,
- method: 'POST',
- action: 'channel',
- },
- geth5: {
- url: `${prefix}/get/h5Sample/:id`,
- method: 'GET',
- action: 'channel',
- },
- updateh5: {
- url: `${prefix}/update/h5Sample/:id`,
- method: 'PUT',
- action: 'channel',
- },
- puth5: {
- url: `${prefix}/put/h5Sample/:id`,
- method: 'PUT',
- action: 'channel',
- }
- },
- image: {
- uploadForAnt: {
- url: `${prefix}/antd/image`,
- method: 'POST',
- action: 'channel',
- },
- upload: {
- url: `${prefix}/image`,
- method: 'POST',
- action: 'channel',
- },
- },
- openScreen: {
- list: {
- url: `${prefix}/listNoticeByCondition`,
- method: 'GET',
- action: 'channel',
- },
- post: {
- url: `${prefix}/taNotice`,
- method: 'post',
- action: 'channel',
- },
- // /api/admin/taNotice/{id}
- put: {
- url: `${prefix}/taNotice/:id`,
- method: 'put',
- action: 'channel',
- },
-
-
- get:{
- url: `${prefix}/taNotice/:id`,
- method: 'GET',
- action: 'channel',
- },
- delete:{
- url: `${prefix}/taNotice/batchDelete`,
- method: 'put',
- action: 'channel',
- },
- getSample:{
- url: `${prefix}/listH5SampleByCondition`,
- method: 'GET',
- action: 'channel',
- }
- // /api/admin/ListH5SampleByCondition
- },
-
- contact:{
- listContactByCondition: {
- url: `${prefix}/listContactByCondition`,
- method: 'GET',
- action: 'channel',
- },
- taContactAdd: {
- url: `${prefix}/taContact`,
- method: 'POST',
- action: 'channel',
- },
- batchDeleteContact: {
- url: `${prefix}/taContact/batchDelete`,
- method: 'PUT',
- action: 'channel',
- },
- taContactGet: {
- url: `${prefix}/taContact/:id`,
- method: 'GET',
- action: 'channel',
- },
- taContactUpdate: {
- url: `${prefix}/taContact/:id`,
- method: 'PUT',
- action: 'channel',
- },
- list: {
- url: `${prefix}/taContact`,
- method: 'GET',
- action: 'channel',
- },
- },
- relatedOrganization:{
- get:{
- url: `${prefix}/contract/listCompanyOrg`,
- method: 'GET',
- action: 'channel',
- },
- listCompany:{
- url: `${prefix}/contract/listCompany`,
- method: 'GET',
- action: 'channel',
- },
- listOrg:{
- url: `${prefix}/contract/listOrg`,
- method: 'GET',
- action: 'channel',
- },
- post:{
- url: `${prefix}/contract/taCompanyOrg`,
- method: 'post',
- action: 'channel',
- },
- delete:{
- url: `${prefix}/taCompanyOrg/:id`,
- method: 'delete',
- action: 'channel',
-
- },
-
- },
- signedContract:{
- get:{
- url: `${prefix}/contract/list`,
- method: 'GET',
- action: 'channel',
- },
- check:{
- url: `${prefix}/contract/checkBeforeBatchUpdatePrice`,
- method: 'post',
- action: 'channel',
- },
- put: {
- url: `${prefix}/contract/batchUpdatePrice`,
- method: 'put',
- action: 'channel',
- },
- },
-
- company: {
- list: {
- url: `${prefix}/company/list`,
- method: 'GET',
- action: 'channel',
- },
- add: {
- url: `${prefix}/company/add`,
- method: 'POST',
- action: 'channel',
- },
- get: {
- url: `${prefix}/company/:id`,
- method: 'GET',
- action: 'channel',
- },
- update: {
- url: `${prefix}/company/:id`,
- method: 'PUT',
- action: 'channel',
- },
- companyById: {
- url: `${prefix}/taCompany/:id`,
- method: 'GET',
- action: 'channel',
- },
- autoAuthSeal: {
- url: `${prefix}/company/autoAuthCompany/:id`,
- method: 'PUT',
- action: 'channel',
- },
- getAuthStatus: {
- url: `${prefix}/company/getAuthStatus/:id`,
- method: 'GET',
- action: 'channel',
- },
- taCompanyList: {
- url: `${prefix}/taCompanyList`,
- method: 'GET',
- action: 'channel',
- }
- },
-
- seal: {
- listByCompanyId: {
- url: `${prefix}/taCompanySeal`,
- method: 'GET',
- action: 'channel',
- },
- addSeal: {
- url: `${prefix}/taCompanySeal`,
- method: 'POST',
- action: 'channel',
- },
- taSealById: {
- url: `${prefix}/taCompanySeal/:id`,
- method: 'GET',
- action: 'channel',
- },
- updateSealById: {
- url: `${prefix}/taCompanySeal/:id`,
- method: 'PUT',
- action: 'channel',
- },
- delSealById: {
- url: `${prefix}/deleteCompanySeal/:id`,
- method: 'PUT',
- action: 'channel',
- },
- refresh: {
- url: `${prefix}/company/fdd/:id`,
- method: 'GET',
- action: 'channel',
- },
- delete: {
- url: `${prefix}/company/delete`,
- method: 'DELETE',
- action: 'channel',
- }
- }
- }
-
- export default apis;
|