lmw
2024-10-23 2f204867ad034d3a95ba9acc112d6507f296447b
app/src/main/java/com/sinata/xqmuse/network/ApiService.kt
@@ -9,7 +9,7 @@
interface ApiService {
    @GET(Apis.H5_URL)
    fun getH5(@Query("key") type: Int): Flowable<ResultData<H5Bean>>
    fun getH5(@Query("key") type: Int,@Query("apipost_id") apipost_id: String = "2478a330b0e0e3"): Flowable<ResultData<H5Bean>>
    @FormUrlEncoded
    @POST(Apis.queryPhysical)
@@ -32,29 +32,26 @@
    @POST(Apis.completeInfo)
    fun completeInfo(@Field("courseId") id: String): Flowable<ResultData<FinishBean>>
    @FormUrlEncoded
    @POST(Apis.queryCourseList)
    fun queryCourseList(
        @Field("pageNum") page: Int,
        @Field("difficulty1") difficulty1: String?,
        @Field("positionName1") positionName1: String?,
        @Field("time") time: String?,
        @Field("typeIds1") typeIds1: String?,
        @Field("courseName") search: String?,
        @Field("pageSize") pageSize: Int = 10
    ): Flowable<ResultData<List<Course>>>
        @Query("pageCurr") page: Int,
        @Query("cateId") typeId: String?,
        @Query("courseTitle") search: String?,
        @Query("pageSize") pageSize: Int = 10,
        @Query("apipost_id") apipost_id: String = "2d6f7f04f99813"
    ): Flowable<ResultData<CourseListBean>>
    @FormUrlEncoded
    @POST(Apis.myCourse)
    fun myCourse(
        @Field("pageNum") page: Int,
        @Field("difficulty1") difficulty1: String?,
        @Field("positionName1") positionName1: String?,
        @Field("time") time: String?,
        @Field("typeIds1") typeIds1: String?,
        @Field("courseName") search: String?,
        @Field("pageSize") pageSize: Int = 10
    ): Flowable<ResultData<List<Course>>>
    @POST(Apis.getCoursePageList)
    fun getCoursePageList(
        @Query("apipost_id") apipost_id: String = "2d2eb9d23993c2"
    ): Flowable<ResultData<TeacherBean>>
    @POST(Apis.getPayCourseInfoById)
    fun getPayCourseInfoById(
        @Query("id") id: String,
        @Query("apipost_id") apipost_id: String = "2d2eb9d23993bd"
    ): Flowable<ResultData<CourseDetail>>
    @FormUrlEncoded
@@ -63,20 +60,13 @@
        @Field("courseId") id: String
    ): Flowable<ResultData<CourseDetail>>
    @FormUrlEncoded
    @POST(Apis.collectCourse)
    fun collectCourse(
        @Field("courseId") id: String
        @Query("id") id: String,
        @Query("apipost_id") apipost_id: String = "365e099b799885"
    ): Flowable<ResultData<Any>>
    @FormUrlEncoded
    @POST(Apis.collectedCourse)
    fun collectedCourse(
        @Field("pageNum") page: Int,
        @Field("courseName") search: String?,
        @Field("positionName1") position: String?,
        @Field("pageSize") pageSize: Int = 10
    ): Flowable<ResultData<List<Course>>>
    @FormUrlEncoded
    @POST(Apis.buyCourse)
@@ -176,9 +166,51 @@
    fun getBankInfo(
    ): Flowable<ResultData<BankInfo>>
    @POST(Apis.peopleList)
    fun peopleList(
    @POST(Apis.getCommissionRule)
    fun shareInfo(
    ): Flowable<ResultData<ShareInfo>>
    @POST
    fun lookHistory(
        @Url url: String,
        @Query("pageCurr") pageCurr: Int,
        @Query("pageSize") pageSize: Int,
        @Query("state") state: Int,
        @Query("apipost_id") apipost_id: String
    ): Flowable<ResultData<CourseListBean>>
    @POST(Apis.getVipPrice)
    fun getVipPrice(
        @Query("apipost_id") apipost_id: String = "2fcbf1db399709"
    ): Flowable<ResultData<VipPriceBean>>
    @POST(Apis.getVipContent)
    fun getVipContent(
        @Query("type") type: Int,
        @Query("apipost_id") apipost_id: String = "2fcbf1db399709"
    ): Flowable<ResultData<String>>
    @POST(Apis.getQrCode)
    fun getQrCode(
        @Query("apipost_id") apipost_id: String = "2fcbf1daf99704"
    ): Flowable<ResultData<String>>
    @POST(Apis.commonQuestion)
    fun commonQuestion(
        @Query("pageCurr") pageNum: Int,
        @Query("pageSize") size: Int,
        @Query("apipost_id") apipost_id: String = "36618045f991c4"
    ): Flowable<ResultData<QABean>>
    @POST(Apis.healingLevel)
    fun healingLevel(
        @Query("apipost_id") apipost_id: String = "34d924b4b991f0"
    ): Flowable<ResultData<LevelBean>>
    @POST(Apis.queryNotice)
    fun queryNotice(
        @Query("apipost_id") apipost_id: String = "37771d0cf0e312"
    ): Flowable<ResultData<Boolean>>
    @FormUrlEncoded
    @POST(Apis.withdrawalRecord)
@@ -259,8 +291,11 @@
        @Field("sex") sex: Int?
    ): Flowable<ResultData<WxLoginBean>>
    @POST(Apis.getBanner)
    fun queryBanner(): Flowable<ResultData<ArrayList<Banner>>>
    @GET(Apis.getBanner)
    fun queryBanner(@Query("apipost_id")apipost_id:String = "2d2eb9d1f993ba"): Flowable<ResultData<ArrayList<Banner>>>
    @GET(Apis.getCourseCategoryList)
    fun getCourseCategoryList(@Query("apipost_id")apipost_id:String = "2d2eb9d1f993bb"): Flowable<ResultData<ArrayList<CourseType>>>
    @POST(Apis.getList)
    fun getList(): Flowable<ResultData<FilterBean>>
@@ -286,6 +321,52 @@
        @Query("apipost_id") apipost_id: String = "25c3e3d0b0e157"
    ): Flowable<ResultData<List<HomeListBean>>>
    @GET(Apis.getHomeBackgroun)
    fun getHomeBackgroun(
        @Query("apipost_id") apipost_id: String = "25c3e3d0b0e155"
    ): Flowable<ResultData<List<BGMBean>>>
    @POST(Apis.getMeditationPageByCateId)
    fun getMeditationPageByCateId(
        @Query("cateId") cateId: String,
        @Query("pageCurr") pageCurr: Int,
        @Query("pageSize") pageSize: Int,
        @Query("apipost_id") apipost_id: String = "25c3e3d0b0e15a"
    ): Flowable<ResultData<SearchResult>>
    @GET(Apis.getMeditationDetails)
    fun getMeditationDetails(
        @Query("id") id: String,
        @Query("apipost_id") apipost_id: String = "25c3e3d0b0e158"
    ): Flowable<ResultData<VoiceDetail>>
    @POST(Apis.favorite)
    fun favorite(
        @Query("id") id: String,
        @Query("apipost_id") apipost_id: String = "2aa4e14ab0e159"
    ): Flowable<ResultData<Any>>
    @GET(Apis.getMeditationQuestionPage)
    fun getMeditationQuestionPage(
        @Query("id") id: String,
        @Query("pageCurr") pageCurr: Int,
        @Query("pageSize") pageSize: Int,
        @Query("apipost_id") apipost_id: String = "25c3e3d0b0e15b"
    ): Flowable<ResultData<VoiceCommentBean>>
    @GET(Apis.search)
    fun search(
        @Query("condition") condition: String,
        @Query("pageCurr") pageCurr: Int,
        @Query("pageSize") pageSize: Int,
        @Query("apipost_id") apipost_id: String = "25c3e3d0b0e160"
    ): Flowable<ResultData<SearchResult>>
    @GET(Apis.getHotWordList)
    fun getHotWordList(
        @Query("apipost_id") apipost_id: String = "25c3e3d0b0e156"
    ): Flowable<ResultData<List<String>>>
    @FormUrlEncoded
    @POST(Apis.queryCouponPackage)
    fun queryCouponPackage(
@@ -294,19 +375,37 @@
        @Field("pageSize") pageSize: Int = Const.PAGE_SIZE
    ): Flowable<ResultData<List<Coupon>>>
    @POST(Apis.getUserByPhone)
    fun getUserByPhone(
        @Query("phone") phone: String,
        @Query("apipost_id") apipost_id: String = "2e763463799135"
    ): Flowable<ResultData<UserInfo>>
    @POST(Apis.confirmOrder)
    fun confirmOrder(
        @Query("courseId") courseId: String,
        @Query("apipost_id") apipost_id: String = "2d2eb9d1f993b9"
    ): Flowable<ResultData<ConfirmOrder>>
    @POST(Apis.cancellation)
    fun cancellation(): Flowable<ResultData<Any>>
    @FormUrlEncoded
    @POST(Apis.updateInfo)
    fun updateInfo(
        @Field("headImg") headImg: String?,
        @Field("birthday") birthday: String?,
        @Field("gender") gender: Int?,
        @Field("height") height: Int?,
        @Field("weight") weight: Double?,
        @Field("waistline") waistline: Int?,
        @Field("name") name: String?
        @Query("avatar") headImg: String?,
        @Query("birthday") birthday: String?,
        @Query("company") company: String?,
        @Query("education") education: String?,
        @Query("email") email: String?,
        @Query("gender") gender: Int?,
        @Query("hometown") hometown: String?,
        @Query("industry") industry: String?,
        @Query("location") location: String?,
        @Query("nickname") nickname: String?,
        @Query("occupation") occupation: String?,
        @Query("signature") signature: String?,
        @Query("name") name: String?,
        @Query("apipost_id") apipost_id: String = "2fc350e9b99599"
    ): Flowable<ResultData<Any>>
    @FormUrlEncoded
@@ -374,12 +473,11 @@
        @Field("pageSize") pageSize: Int = Const.PAGE_SIZE
    ): Flowable<ResultData<List<ReplyComment>>>
    @FormUrlEncoded
    @POST(Apis.report)
    fun report(
        @Field("id") id: String,
        @Field("content") content: String,
        @Field("type") type: Int
        @Query("id") id: String,
        @Query("reason") content: String,
        @Query("apipost_id") apipost_id: String = "25c3e3d0b0e15e"
    ): Flowable<ResultData<Any>>
    @FormUrlEncoded
@@ -392,12 +490,10 @@
        @Field("replyUserId") replyUserId: String?
    ): Flowable<ResultData<Any>>
    @FormUrlEncoded
    @POST(Apis.doLike)
    fun doLike(
        @Field("id") findId: String,
        @Field("type") type: Int,
        @Field("findCommentId") findCommentId: String?
        @Query("id") findId: String,
        @Query("apipost_id") apipost_id: String = "2aa4e14b30e165"
    ): Flowable<ResultData<Any>>
    @FormUrlEncoded
@@ -416,19 +512,30 @@
        @Field("id") id: String
    ): Flowable<ResultData<Dynamic>>
    @FormUrlEncoded
    @POST(Apis.messageList)
    fun messageList(
        @Field("pageNum") page: Int,
        @Field("pageSize") pageSize: Int = Const.PAGE_SIZE): Flowable<ResultData<List<Msg>>>
        @Query("pageCurr") pageCurr: Int,
        @Query("pageSize") pageSize: Int,
        @Query("apipost_id") apipost_id: String = "361bdf123992f9"): Flowable<ResultData<MsgListBean>>
    @FormUrlEncoded
    @POST(Apis.deleteFind)
    fun deleteFind(
        @Field("findId") findId: String): Flowable<ResultData<Any>>
    @POST(Apis.messageCount)
    fun messageCount(): Flowable<ResultData<Int>>
    @GET(Apis.getMeditationPage)
    fun getMeditationPage(
        @Query("name") name: String?,
        @Query("lat") lat: Double?,
        @Query("lon") lon: Double?,
        @Query("pageCurr") pageCurr: Int,
        @Query("pageSize") pageSize: Int,
        @Query("apipost_id") apipost_id: String = "2d2eb5e7f991ab"): Flowable<ResultData<PlaceListBean>>
    @GET(Apis.getMeditationInfo)
    fun getMeditationInfo(
        @Query("id") id: String,
        @Query("apipost_id") apipost_id: String = "2d2eb5e7b991aa"): Flowable<ResultData<Place>>
    @FormUrlEncoded
    @POST
@@ -452,7 +559,10 @@
    fun changeConstellation(@Field("consName") consName:String): Flowable<ResultData<Any>>
    @POST(Apis.getUserInfo)
    fun getUserInfo(): Flowable<ResultData<UserInfo>>
    fun getUserInfo(@Query("apipost_id") apipost_id: String = "300079e039993f"): Flowable<ResultData<MineInfo>>
    @POST(Apis.getUserDetail)
    fun getUserDetail(@Query("apipost_id") apipost_id: String = "2fc350e9799588"): Flowable<ResultData<UserInfo>>
    @POST(Apis.getNotice)
    fun getNotice(): Flowable<ResultData<Notice>>