-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
34 additions
and
34 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
import axios from 'axios' | ||
// import { createdBy, orgId } from 'store/constant' | ||
// const BaseURL = '192.168.31.109' | ||
// const PORT = 8080 | ||
// const url = `http://${BaseURL}:${PORT}/api/users/flowIse/${createdBy}/${orgId}` | ||
|
||
// export function getUsersArray() { | ||
// return axios.get(url).then((res) => { | ||
// let Data = res.data.data | ||
// let orgId = Object.keys(Data)[0] | ||
// let userIdArr = Object.values(Data)[0] | ||
// return { | ||
// orgId, | ||
// userIdArr | ||
// } | ||
// }) | ||
// } | ||
import { createdBy, orgId } from 'store/constant' | ||
const BaseURL = 'localhost' | ||
const PORT = 8080 | ||
const url = `http://${BaseURL}:${PORT}/api/users/flowIse/${createdBy}/${orgId}` | ||
|
||
export function getUsersArray() { | ||
return axios.get('http://localhost:3100/api/v1/ip').then(() => { | ||
return axios.get(url).then((res) => { | ||
let Data = res.data.data | ||
let orgId = Object.keys(Data)[0] | ||
let userIdArr = Object.values(Data)[0] | ||
return { | ||
orgId: '65536f422886657aeb845dca', | ||
userIdArr: [ | ||
'65880ad733e3d01588e55ded', | ||
'65536f412886657aeb845dc9', | ||
'655afbf6a86fa408231fa9ab', | ||
'658161561b9641349c6cc9a0', | ||
'6559b39d5c3dcd549c8a0619', | ||
'6576c47847b11e3155938b94', | ||
'658265c79d210324ab9d4abb', | ||
'655994d25c3dcd549c8a05c4', | ||
'6588407329a7b000ccaee7b8', | ||
'6588f8c054f31c775d0b499b' | ||
] | ||
orgId, | ||
userIdArr | ||
} | ||
}) | ||
} | ||
|
||
// export function getUsersArray() { | ||
// return axios.get('http://localhost:3100/api/v1/ip').then(() => { | ||
// return { | ||
// orgId: '65536f422886657aeb845dca', | ||
// userIdArr: [ | ||
// '65880ad733e3d01588e55ded', | ||
// '65536f412886657aeb845dc9', | ||
// '655afbf6a86fa408231fa9ab', | ||
// '658161561b9641349c6cc9a0', | ||
// '6559b39d5c3dcd549c8a0619', | ||
// '6576c47847b11e3155938b94', | ||
// '658265c79d210324ab9d4abb', | ||
// '655994d25c3dcd549c8a05c4', | ||
// '6588407329a7b000ccaee7b8', | ||
// '6588f8c054f31c775d0b499b' | ||
// ] | ||
// } | ||
// }) | ||
// } |