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>() {
vo
[
"vedioId"
]
=
videoId
AppHttpManager
.
getInstance
(
loanApplication
)
.
call
(
loanService
.
c
ancelCollect
(
vo
),
loanService
.
c
ollectCancel
(
vo
),
object
:
BaseSubscriber
<
BaseResponse
<
JsonObject
>>()
{
override
fun
onCompleted
()
{
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;
import
com.mints.enjoyboxjia.BuildConfig
;
import
com.mints.enjoyboxjia.mvp.model.BannerList
;
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.HotStyleTypesList
;
=======
import
com.mints.enjoyboxjia.mvp.model.BookBean
;
import
com.mints.enjoyboxjia.mvp.model.BookContentBean
;
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.UserBean
;
import
com.mints.enjoyboxjia.mvp.model.Version
;
...
...
@@ -152,43 +145,37 @@ public interface LoanService {
Observable
<
BaseResponse
<
BannerList
>>
orders
();
/**
<<<<<<< Updated upstream
* 历史记录
*
* @return
*/
@POST
(
"api/vedioV1/history"
)
Observable
<
BaseResponse
<
BannerList
>>
history
();
=======
/**
* 收藏列表
*
* @return
*/
@POST
(
"api/book/collectList"
)
Observable
<
BaseResponse
<
BookListBean
>>
collectList
(
@Body
Map
<
String
,
Object
>
vo
);
>>>>>>>
Stashed
changes
/**
* 收藏
*
* @return
*/
<<<<<<<
Updated
upstream
@POST
(
"api/vedioV1/collect"
)
Observable
<
BaseResponse
<
Object
>>
collect
(
@Body
Map
<
String
,
Object
>
vo
);
=======
@POST
(
"api/book/collect"
)
Observable
<
BaseResponse
<
JsonObject
>>
collect
(
@Body
Map
<
String
,
Object
>
vo
);
>>>>>>>
Stashed
changes
/**
* 取消收藏
*
* @return
*/
<<<<<<<
Updated
upstream
@POST
(
"api/vedioV1/cancelCollect"
)
Observable
<
BaseResponse
<
Object
>>
cancelCollect
(
@Body
Map
<
String
,
Object
>
vo
);
@POST
(
"api/book/collectCancel"
)
Observable
<
BaseResponse
<
Object
>>
collectCancel
(
@Body
Map
<
String
,
Object
>
vo
);
/**
* 书库列表
...
...
@@ -206,11 +193,6 @@ public interface LoanService {
@POST
(
"api/book/categoryList"
)
Observable
<
BaseResponse
<
HotBookTypeList
>>
getHomeV1Types
();
=======
@POST
(
"api/book/collectCancel"
)
Observable
<
BaseResponse
<
JsonObject
>>
collectCancel
(
@Body
Map
<
String
,
Object
>
vo
);
/**
* 获取推荐书籍
*
...
...
@@ -250,7 +232,6 @@ public interface LoanService {
*/
@POST
(
"api/book/articleList"
)
Observable
<
BaseResponse
<
BookListBean
>>
getArticleList
(
@Body
Map
<
String
,
Object
>
vo
);
>>>>>>>
Stashed
changes
/**
* 默认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