Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_book
Project
Project
Details
Activity
Releases
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
android
android_book
Commits
ecfade87
Commit
ecfade87
authored
Sep 24, 2024
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
63de0379
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
25 deletions
+6
-25
WatchRecordPresenter.kt
.../mints/enjoyboxjia/mvp/presenters/WatchRecordPresenter.kt
+1
-1
LoanService.java
.../src/main/java/com/mints/enjoyboxjia/net/LoanService.java
+5
-24
No files found.
book/app/src/main/java/com/mints/enjoyboxjia/mvp/presenters/WatchRecordPresenter.kt
View file @
ecfade87
...
@@ -90,7 +90,7 @@ class WatchRecordPresenter : BasePresenter<WatchRecordView>() {
...
@@ -90,7 +90,7 @@ class WatchRecordPresenter : BasePresenter<WatchRecordView>() {
vo
[
"vedioId"
]
=
videoId
vo
[
"vedioId"
]
=
videoId
AppHttpManager
.
getInstance
(
loanApplication
)
AppHttpManager
.
getInstance
(
loanApplication
)
.
call
(
.
call
(
loanService
.
c
ancelCollect
(
vo
),
loanService
.
c
ollectCancel
(
vo
),
object
:
BaseSubscriber
<
BaseResponse
<
JsonObject
>>()
{
object
:
BaseSubscriber
<
BaseResponse
<
JsonObject
>>()
{
override
fun
onCompleted
()
{
override
fun
onCompleted
()
{
if
(
isLinkView
)
return
if
(
isLinkView
)
return
...
...
book/app/src/main/java/com/mints/enjoyboxjia/net/LoanService.java
View file @
ecfade87
...
@@ -6,16 +6,9 @@ import com.google.gson.JsonObject;
...
@@ -6,16 +6,9 @@ import com.google.gson.JsonObject;
import
com.mints.enjoyboxjia.BuildConfig
;
import
com.mints.enjoyboxjia.BuildConfig
;
import
com.mints.enjoyboxjia.mvp.model.BannerList
;
import
com.mints.enjoyboxjia.mvp.model.BannerList
;
import
com.mints.enjoyboxjia.mvp.model.BaseResponse
;
import
com.mints.enjoyboxjia.mvp.model.BaseResponse
;
<<<<<<<
Updated
upstream
import
com.mints.enjoyboxjia.mvp.model.BookTypeBean
;
import
com.mints.enjoyboxjia.mvp.model.HotBookTypeList
;
import
com.mints.enjoyboxjia.mvp.model.HotBookTypeList
;
import
com.mints.enjoyboxjia.mvp.model.HotStyleTypesList
;
=======
import
com.mints.enjoyboxjia.mvp.model.BookBean
;
import
com.mints.enjoyboxjia.mvp.model.BookContentBean
;
import
com.mints.enjoyboxjia.mvp.model.BookContentBean
;
import
com.mints.enjoyboxjia.mvp.model.BookListBean
;
import
com.mints.enjoyboxjia.mvp.model.BookListBean
;
import
com.mints.enjoyboxjia.mvp.model.HotStyleListBean
;
>>>>>>>
Stashed
changes
import
com.mints.enjoyboxjia.mvp.model.OrderRecordBean
;
import
com.mints.enjoyboxjia.mvp.model.OrderRecordBean
;
import
com.mints.enjoyboxjia.mvp.model.UserBean
;
import
com.mints.enjoyboxjia.mvp.model.UserBean
;
import
com.mints.enjoyboxjia.mvp.model.Version
;
import
com.mints.enjoyboxjia.mvp.model.Version
;
...
@@ -152,43 +145,37 @@ public interface LoanService {
...
@@ -152,43 +145,37 @@ public interface LoanService {
Observable
<
BaseResponse
<
BannerList
>>
orders
();
Observable
<
BaseResponse
<
BannerList
>>
orders
();
/**
/**
<<<<<<< Updated upstream
* 历史记录
* 历史记录
*
*
* @return
* @return
*/
*/
@POST
(
"api/vedioV1/history"
)
@POST
(
"api/vedioV1/history"
)
Observable
<
BaseResponse
<
BannerList
>>
history
();
Observable
<
BaseResponse
<
BannerList
>>
history
();
=======
/**
* 收藏列表
* 收藏列表
*
*
* @return
* @return
*/
*/
@POST
(
"api/book/collectList"
)
@POST
(
"api/book/collectList"
)
Observable
<
BaseResponse
<
BookListBean
>>
collectList
(
@Body
Map
<
String
,
Object
>
vo
);
Observable
<
BaseResponse
<
BookListBean
>>
collectList
(
@Body
Map
<
String
,
Object
>
vo
);
>>>>>>>
Stashed
changes
/**
/**
* 收藏
* 收藏
*
*
* @return
* @return
*/
*/
<<<<<<<
Updated
upstream
@POST
(
"api/vedioV1/collect"
)
Observable
<
BaseResponse
<
Object
>>
collect
(
@Body
Map
<
String
,
Object
>
vo
);
=======
@POST
(
"api/book/collect"
)
@POST
(
"api/book/collect"
)
Observable
<
BaseResponse
<
JsonObject
>>
collect
(
@Body
Map
<
String
,
Object
>
vo
);
Observable
<
BaseResponse
<
JsonObject
>>
collect
(
@Body
Map
<
String
,
Object
>
vo
);
>>>>>>>
Stashed
changes
/**
/**
* 取消收藏
* 取消收藏
*
*
* @return
* @return
*/
*/
<<<<<<<
Updated
upstream
@POST
(
"api/book/collectCancel"
)
@POST
(
"api/vedioV1/cancelCollect"
)
Observable
<
BaseResponse
<
Object
>>
collectCancel
(
@Body
Map
<
String
,
Object
>
vo
);
Observable
<
BaseResponse
<
Object
>>
cancelCollect
(
@Body
Map
<
String
,
Object
>
vo
);
/**
/**
* 书库列表
* 书库列表
...
@@ -206,11 +193,6 @@ public interface LoanService {
...
@@ -206,11 +193,6 @@ public interface LoanService {
@POST
(
"api/book/categoryList"
)
@POST
(
"api/book/categoryList"
)
Observable
<
BaseResponse
<
HotBookTypeList
>>
getHomeV1Types
();
Observable
<
BaseResponse
<
HotBookTypeList
>>
getHomeV1Types
();
=======
@POST
(
"api/book/collectCancel"
)
Observable
<
BaseResponse
<
JsonObject
>>
collectCancel
(
@Body
Map
<
String
,
Object
>
vo
);
/**
/**
* 获取推荐书籍
* 获取推荐书籍
*
*
...
@@ -250,7 +232,6 @@ public interface LoanService {
...
@@ -250,7 +232,6 @@ public interface LoanService {
*/
*/
@POST
(
"api/book/articleList"
)
@POST
(
"api/book/articleList"
)
Observable
<
BaseResponse
<
BookListBean
>>
getArticleList
(
@Body
Map
<
String
,
Object
>
vo
);
Observable
<
BaseResponse
<
BookListBean
>>
getArticleList
(
@Body
Map
<
String
,
Object
>
vo
);
>>>>>>>
Stashed
changes
/**
/**
* 默认http工厂
* 默认http工厂
...
...
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