Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
visualDataServer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
standardized
visualDataServer
Commits
c4922630
Commit
c4922630
authored
Nov 10, 2021
by
lixinming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
f11532c7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
3 deletions
+15
-3
enum.ts
src/config/enum.ts
+2
-0
getOnceInterfaceData.ts
src/data/interface/getOnceInterfaceData.ts
+10
-2
main.ts
src/main.ts
+3
-1
No files found.
src/config/enum.ts
View file @
c4922630
...
@@ -5,4 +5,5 @@ export enum ERRORENUM {
...
@@ -5,4 +5,5 @@ export enum ERRORENUM {
export
enum
REQUESTENUM
{
export
enum
REQUESTENUM
{
get
=
1
,
get
=
1
,
post
,
post
,
postForm
}
}
\ No newline at end of file
src/data/interface/getOnceInterfaceData.ts
View file @
c4922630
import
{
REQUESTENUM
}
from
"../../config/enum"
;
import
{
post
}
from
"../../util/request"
;
export
async
function
getData
(
type
,
url
,
paramater
)
{
export
async
function
getData
()
{
await
requestData
();
}
async
function
requestData
()
{
let
requestRestult
=
await
post
(
"http://192.168.0.140:7536/ydygl"
,
{},
{});
console
.
log
();
}
}
\ No newline at end of file
src/main.ts
View file @
c4922630
import
{
getData
}
from
"./data/interface/getOnceInterfaceData"
;
import
{
getPort
}
from
"./serverConfig"
;
import
{
getPort
}
from
"./serverConfig"
;
...
@@ -7,7 +8,7 @@ async function lanuch() {
...
@@ -7,7 +8,7 @@ async function lanuch() {
}
}
function
test
()
{
function
test
()
{
// testMaxMin();
getData
()
}
}
lanuch
();
lanuch
();
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment