Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lib_base
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sikang
lib_base
Commits
d11b7788
Commit
d11b7788
authored
Jan 14, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加同盾动态列表
parent
bf8d6086
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
0 deletions
+50
-0
src/main/java/tech/starwin/mvp/api/UserApi.java
+9
-0
src/main/java/tech/starwin/mvp/beans/ThirdPartItemBean.java
+34
-0
src/main/java/tech/starwin/mvp/presenter/UserPresenter.java
+7
-0
No files found.
src/main/java/tech/starwin/mvp/api/UserApi.java
View file @
d11b7788
...
...
@@ -41,6 +41,7 @@ import tech.starwin.mvp.beans.RegionBean;
import
tech.starwin.mvp.beans.Result
;
import
tech.starwin.mvp.beans.SysDictBean
;
import
tech.starwin.mvp.beans.ThirdPartDataBean
;
import
tech.starwin.mvp.beans.ThirdPartItemBean
;
import
tech.starwin.mvp.beans.TokenInfoBean
;
import
tech.starwin.mvp.beans.UserBankInfo
;
import
tech.starwin.mvp.beans.UserBean
;
...
...
@@ -134,6 +135,7 @@ public interface UserApi {
@Field
(
"friendName"
)
String
friendName
,
@Field
(
"friendMobile"
)
String
friendMobile
,
@Header
(
"X-AUTH-TOKEN"
)
String
token
);
@FormUrlEncoded
@PUT
(
"record/contact"
)
Observable
<
ResponseBody
>
submitContactInfo
(
@Field
(
"parentId"
)
String
parentId
,
...
...
@@ -319,6 +321,13 @@ public interface UserApi {
Observable
<
ThirdPartDataBean
>
getThirdPartAccount
(
@Header
(
"X-AUTH-TOKEN"
)
String
token
);
/**
* 同盾列表
*/
@GET
(
"record/thirdparty_data_list"
)
Observable
<
List
<
ThirdPartItemBean
>>
getThirdPartList
(
@Header
(
"X-AUTH-TOKEN"
)
String
token
);
/**
* 提交第三方数据
*/
@PUT
(
"record/thirdparty_data"
)
...
...
src/main/java/tech/starwin/mvp/beans/ThirdPartItemBean.java
0 → 100644
View file @
d11b7788
package
tech
.
starwin
.
mvp
.
beans
;
/**
* Created by SiKang on 2019/1/14.
*/
public
class
ThirdPartItemBean
{
private
String
type
;
// "FACEBOOK",
private
String
iconUrl
;
// "http://adminweb.id.starblingbling.com/favicon.png",
private
boolean
bindFlag
;
// true
public
String
getType
()
{
return
type
;
}
public
void
setType
(
String
type
)
{
this
.
type
=
type
;
}
public
String
getIconUrl
()
{
return
iconUrl
;
}
public
void
setIconUrl
(
String
iconUrl
)
{
this
.
iconUrl
=
iconUrl
;
}
public
boolean
isBindFlag
()
{
return
bindFlag
;
}
public
void
setBindFlag
(
boolean
bindFlag
)
{
this
.
bindFlag
=
bindFlag
;
}
}
src/main/java/tech/starwin/mvp/presenter/UserPresenter.java
View file @
d11b7788
...
...
@@ -549,6 +549,13 @@ public class UserPresenter extends BasePresenter<UserApi> {
}
/**
* 获取同盾列表
*/
public
void
getThirdPartList
(
String
action
)
{
handleRequest
(
action
,
apiService
.
getThirdPartList
(
LoginManager
.
get
().
getToken
()));
}
/**
* 提交第同盾数据源
*/
public
void
submitTDData
(
String
action
,
String
dataType
,
String
taskId
,
String
credentialNo
,
String
realName
,
String
mobile
)
{
...
...
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