Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨凯
YDL-Component-Medical
Commits
229096eb
Commit
229096eb
authored
Nov 01, 2019
by
严久程
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
课程模块
parent
c73350fe
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
11 deletions
+17
-11
CourseSpecialListApi.kt
m-course/src/main/java/com/yidianling/course/course_special_list/http/CourseSpecialListApi.kt
+3
-0
CourseSpecialListHttpImpl.kt
m-course/src/main/java/com/yidianling/course/course_special_list/http/CourseSpecialListHttpImpl.kt
+2
-2
ICourseSpecialListHttp.kt
m-course/src/main/java/com/yidianling/course/course_special_list/http/ICourseSpecialListHttp.kt
+7
-5
CourseSpecialListModelImpl.kt
m-course/src/main/java/com/yidianling/course/course_special_list/model/CourseSpecialListModelImpl.kt
+5
-4
No files found.
m-course/src/main/java/com/yidianling/course/course_special_list/http/CourseSpecialListApi.kt
View file @
229096eb
...
@@ -4,6 +4,7 @@ import com.ydl.ydlcommon.data.http.BaseAPIResponse
...
@@ -4,6 +4,7 @@ import com.ydl.ydlcommon.data.http.BaseAPIResponse
import
com.yidianling.course.course_special_list.bean.CourseSpecialListBean
import
com.yidianling.course.course_special_list.bean.CourseSpecialListBean
import
io.reactivex.Observable
import
io.reactivex.Observable
import
retrofit2.http.GET
import
retrofit2.http.GET
import
retrofit2.http.HEAD
import
retrofit2.http.QueryMap
import
retrofit2.http.QueryMap
/**
/**
...
@@ -16,6 +17,7 @@ import retrofit2.http.QueryMap
...
@@ -16,6 +17,7 @@ import retrofit2.http.QueryMap
interface
CourseSpecialListApi
{
interface
CourseSpecialListApi
{
//课程专题列表
//课程专题列表
//todo
@GET
(
"auth/course/listCoursesBySpecialId"
)
@GET
(
"auth/course/listCoursesBySpecialId"
)
fun
courseSpecialList
(
@QueryMap
params
:
Map
<
String
,
String
>):
Observable
<
BaseAPIResponse
<
CourseSpecialListBean
>>
fun
courseSpecialList
(
@QueryMap
params
:
Map
<
String
,
String
>):
Observable
<
BaseAPIResponse
<
CourseSpecialListBean
>>
}
}
\ No newline at end of file
m-course/src/main/java/com/yidianling/course/course_special_list/http/CourseSpecialListHttpImpl.kt
View file @
229096eb
...
@@ -44,7 +44,6 @@ class CourseSpecialListHttpImpl private constructor() : ICourseSpecialListHttp {
...
@@ -44,7 +44,6 @@ class CourseSpecialListHttpImpl private constructor() : ICourseSpecialListHttp {
override
fun
courseSpecialList
(
param
:
CourseSpecialListParam
):
Observable
<
BaseAPIResponse
<
CourseSpecialListBean
>>
{
override
fun
courseSpecialList
(
param
:
CourseSpecialListParam
):
Observable
<
BaseAPIResponse
<
CourseSpecialListBean
>>
{
val
list
=
getPostList
(
param
)
val
list
=
getPostList
(
param
)
return
YDLHttpUtils
.
getInstance
().
newBuilder
().
baseUrl
(
NetworkParamsUtils
.
SERVER_API_JAVA_URL
)
return
YDLHttpUtils
.
obtainApi
(
CourseSpecialListApi
::
class
.
java
!!
).
courseSpecialList
(
getMaps
(
list
))
.
build
().
create
<
CourseSpecialListApi
>(
CourseSpecialListApi
::
class
.
java
!!
).
courseSpecialList
(
getMaps
(
list
))
}
}
}
}
\ No newline at end of file
m-course/src/main/java/com/yidianling/course/course_special_list/http/ICourseSpecialListHttp.kt
View file @
229096eb
package
com.yidianling.course.course_special_list.http
package
com.yidianling.course.course_special_list.http
import
com.y
idianling.course.course_special_list.bean.CourseSpecialItemBean
import
com.y
dl.ydlcommon.data.http.BaseAPIResponse
import
com.yidianling.course.course_special_list.bean.CourseSpecialListBean
import
com.yidianling.course.course_special_list.bean.CourseSpecialListBean
import
com.yidianling.ydlcommon.http.BaseAPIResponse
import
com.yidianling.ydlcommon.http.BaseResponse
import
io.reactivex.Observable
import
io.reactivex.Observable
/**
/**
...
@@ -13,9 +11,12 @@ import io.reactivex.Observable
...
@@ -13,9 +11,12 @@ import io.reactivex.Observable
* @Company 壹点灵
* @Company 壹点灵
* @date 2018/9/18
* @date 2018/9/18
*/
*/
interface
ICourseSpecialListHttp
{
interface
ICourseSpecialListHttp
{
/**
/**
* 课程专题列表
* 课程专题列表
*
*
*/
*/
fun
courseSpecialList
(
param
:
CourseSpecialListParam
):
Observable
<
BaseAPIResponse
<
CourseSpecialListBean
>>
fun
courseSpecialList
(
param
:
CourseSpecialListParam
):
Observable
<
BaseAPIResponse
<
CourseSpecialListBean
>>
}
}
\ No newline at end of file
m-course/src/main/java/com/yidianling/course/course_special_list/model/CourseSpecialListModelImpl.kt
View file @
229096eb
package
com.yidianling.course.course_special_list.model
package
com.yidianling.course.course_special_list.model
import
com.y
idianling.course.course_special_list.bean.CourseSpecialItemBean
import
com.y
dl.ydlcommon.data.http.RxUtils
import
com.yidianling.course.course_special_list.bean.CourseSpecialListBean
import
com.yidianling.course.course_special_list.bean.CourseSpecialListBean
import
com.yidianling.course.course_special_list.contract.ICourseSpecialListContract
import
com.yidianling.course.course_special_list.contract.ICourseSpecialListContract
import
com.yidianling.course.course_special_list.http.CourseSpecialListDataManager
import
com.yidianling.course.course_special_list.http.CourseSpecialListDataManager
import
com.yidianling.course.course_special_list.http.CourseSpecialListParam
import
com.yidianling.course.course_special_list.http.CourseSpecialListParam
import
com.yidianling.ydlcommon.http.RxUtils
import
io.reactivex.Observable
import
io.reactivex.Observable
/**
/**
...
@@ -15,9 +14,10 @@ import io.reactivex.Observable
...
@@ -15,9 +14,10 @@ import io.reactivex.Observable
* @Company 壹点灵
* @Company 壹点灵
* @date 2018/9/18
* @date 2018/9/18
*/
*/
class
CourseSpecialListModelImpl
:
ICourseSpecialListContract
.
Model
{
class
CourseSpecialListModelImpl
:
ICourseSpecialListContract
.
Model
{
override
fun
specialListRequest
(
param
:
CourseSpecialListParam
):
Observable
<
CourseSpecialListBean
>
{
override
fun
specialListRequest
(
param
:
CourseSpecialListParam
):
Observable
<
CourseSpecialListBean
>
{
return
CourseSpecialListDataManager
.
getHttp
().
courseSpecialList
(
param
).
compose
(
RxUtils
.
resultJavaData
())
return
CourseSpecialListDataManager
.
getHttp
().
courseSpecialList
(
param
)
.
compose
(
RxUtils
.
resultJavaData
())
}
}
}
}
\ No newline at end of file
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