Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
H
hsWebHttpClient
Project
Project
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
何虹
hsWebHttpClient
Commits
1a46fd41
Commit
1a46fd41
authored
May 28, 2021
by
何虹
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化api
parent
3bed9211
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
hsWebHttpClient.js
dist/hsWebHttpClient.js
+9
-8
hsWebHttpClient.min.js
dist/hsWebHttpClient.min.js
+1
-1
No files found.
dist/hsWebHttpClient.js
View file @
1a46fd41
...
...
@@ -22033,10 +22033,11 @@ class RestFul {
this
.
moduleName
=
'RestFulModule'
// 如果isService 是字符串就直接试用这个字符串作为代理前缀,是不尔值:true就使用用默认的字符串:SERVICE_PROXY
const
typeof_isService
=
typeof
isService
this
.
MODULE_API
=
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
TOOL_API
if
(
typeof_isService
===
'boolean'
)
{
this
.
MODULEAPI
=
isService
?
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
SERVICE_API
:
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
TOOL_API
this
.
MODULE
_
API
=
isService
?
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
SERVICE_API
:
_common_commonModule__WEBPACK_IMPORTED_MODULE_0__
.
TOOL_API
}
else
if
(
typeof_isService
===
'string'
&&
isService
)
{
this
.
MODULEAPI
=
isService
this
.
MODULE
_
API
=
isService
}
}
// 处理传入的data 如果有appCode dbName
...
...
@@ -22058,7 +22059,7 @@ class RestFul {
query
(
data
)
{
this
.
packParamHandle
(
data
)
const
{
tableName
,
appCode
,
group
,
parms
,
bodyData
,
isQueryMaster
}
=
data
let
url
=
`
${
MODULE
API
}${
appCode
}
/
${
tableName
}
/`
let
url
=
`
${
this
.
MODULE_
API
}${
appCode
}
/
${
tableName
}
/`
if
(
group
)
{
// 非标准保存
url
=
`
${
url
}${
group
}
/`
}
...
...
@@ -22072,7 +22073,7 @@ class RestFul {
save
(
data
)
{
this
.
packParamHandle
(
data
)
const
{
tableName
,
appCode
,
bodyData
,
group
,
parms
}
=
data
let
url
=
`
${
MODULE
API
}${
appCode
}
/
${
tableName
}
/`
let
url
=
`
${
this
.
MODULE_
API
}${
appCode
}
/
${
tableName
}
/`
if
(
group
)
{
// 非标准保存
url
=
`
${
url
}${
group
}
/`
}
...
...
@@ -22081,7 +22082,7 @@ class RestFul {
queryOne
(
data
)
{
this
.
packParamHandle
(
data
)
const
{
tableName
,
id
,
appCode
,
parms
,
group
,
bodyData
,
isQueryMaster
}
=
data
let
url_
=
`
${
MODULE
API
}${
appCode
}
/
${
tableName
}
/
${
id
}
/`
let
url_
=
`
${
this
.
MODULE_
API
}${
appCode
}
/
${
tableName
}
/
${
id
}
/`
if
(
group
)
{
url_
=
`
${
url_
}${
group
}
/`
}
...
...
@@ -22095,7 +22096,7 @@ class RestFul {
put
(
data
)
{
this
.
packParamHandle
(
data
)
const
{
tableName
,
appCode
,
bodyData
,
group
,
parms
,
isQueryMaster
}
=
data
let
url
=
`
${
MODULE
API
}${
appCode
}
/
${
tableName
}
/`
let
url
=
`
${
this
.
MODULE_
API
}${
appCode
}
/
${
tableName
}
/`
if
(
group
)
{
// 非标准保存
url
=
`
${
url
}${
group
}
/`
}
...
...
@@ -22105,7 +22106,7 @@ class RestFul {
queryList
(
data
)
{
this
.
packParamHandle
(
data
)
const
{
tableName
,
appCode
,
parms
,
group
,
bodyData
,
isQueryMaster
}
=
data
let
url_
=
`
${
MODULE
API
}${
appCode
}
/
${
tableName
}
/`
let
url_
=
`
${
this
.
MODULE_
API
}${
appCode
}
/
${
tableName
}
/`
if
(
group
)
{
url_
=
`
${
url_
}${
group
}
/`
}
...
...
@@ -22120,7 +22121,7 @@ class RestFul {
deleteList
(
data
)
{
this
.
packParamHandle
(
data
)
const
{
tableName
,
appCode
,
bodyData
,
parms
}
=
data
const
url_
=
`
${
MODULE
API
}${
appCode
}
/
${
tableName
}
/`
const
url_
=
`
${
this
.
MODULE_
API
}${
appCode
}
/
${
tableName
}
/`
return
this
.
requestClient
.
delete
(
url_
,
bodyData
,
parms
)
}
}
...
...
dist/hsWebHttpClient.min.js
View file @
1a46fd41
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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