Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
GeliBusinessPlatform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ljy
GeliBusinessPlatform
Commits
bff15798
Commit
bff15798
authored
Apr 28, 2020
by
刘俊宏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
简单通用操作接口
parent
e2d70e4a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
1 deletion
+14
-1
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
...ata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/Interface/Interface_Z.plist
GeliBusinessPlatform/Interface/Interface_Z.plist
+3
-0
GeliBusinessPlatform/Model/Interface.swift
GeliBusinessPlatform/Model/Interface.swift
+10
-0
GeliBusinessPlatform/Model/UpDataModel.swift
GeliBusinessPlatform/Model/UpDataModel.swift
+1
-1
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
View file @
bff15798
No preview for this file type
GeliBusinessPlatform/Interface/Interface_Z.plist
View file @
bff15798
...
@@ -26,5 +26,8 @@
...
@@ -26,5 +26,8 @@
<string>
Gelipay/locationGeliPay
</string>
<string>
Gelipay/locationGeliPay
</string>
<key>
商品列表
</key>
<key>
商品列表
</key>
<string>
goods/goodsList
</string>
<string>
goods/goodsList
</string>
<key>
简单通用操作接口
</key>
<string>
Common/editField
</string>
</dict>
</dict>
</plist>
</plist>
GeliBusinessPlatform/Model/Interface.swift
View file @
bff15798
...
@@ -129,3 +129,13 @@ func goodsList(_ params:[String:Any],success:@escaping (_ res:Any)->(),failture:
...
@@ -129,3 +129,13 @@ func goodsList(_ params:[String:Any],success:@escaping (_ res:Any)->(),failture:
failture
(
error
)
failture
(
error
)
}
}
}
}
//MARK:--简单通用操作接口
//params-key(user_token,function_id(功能id,根据功能填写。功能表见“简单通用操作表”页面),prval( 操作对象id,例:执行商品信息变更操作,为商品id;执行商店信息变更操作,为商店id),value(操作对象变更后的值))
func
editField
(
_
params
:[
String
:
Any
],
success
:
@escaping
(
_
res
:
Any
)
->
(),
failture
:
@escaping
(
_
error
:
Error
)
->
())
{
NetworkRequest
.
sharedInstance
.
postRequest
(
"简单通用操作接口"
,
params
,
{
(
rep
:
DataResponse
<
UpDataModel
>
)
in
},
success
:
{
(
data
)
in
success
(
data
)
})
{
(
error
)
in
failture
(
error
)
}
}
GeliBusinessPlatform/Model/UpDataModel.swift
View file @
bff15798
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
import
Foundation
import
Foundation
import
ObjectMapper
import
ObjectMapper
//发送验证码,验证短信验证码,修改登录密码,绑定、更换绑定格利支付账号
//发送验证码,验证短信验证码,修改登录密码,绑定、更换绑定格利支付账号
,简单通用操作接口
class
UpDataModel
:
Mappable
{
class
UpDataModel
:
Mappable
{
var
code
:
Int
?
var
code
:
Int
?
var
message
:
String
?
var
message
:
String
?
...
...
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