All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hiczp.picacomic.api.service.init.InitService.kt Maven / Gradle / Ivy

package com.hiczp.picacomic.api.service.init

import com.hiczp.caeruleum.annotation.Attribute
import com.hiczp.caeruleum.annotation.Get
import com.hiczp.caeruleum.annotation.Query
import com.hiczp.picacomic.api.NO_SIGN
import com.hiczp.picacomic.api.picaAPIBaseUrl
import com.hiczp.picacomic.api.service.Response
import com.hiczp.picacomic.api.service.init.model.ApplicationPagesResponse
import com.hiczp.picacomic.api.service.init.model.InitResponse
import com.hiczp.picacomic.api.service.init.model.WakaInitResponse

interface InitService {
    @Suppress("SpellCheckingInspection")
    @Attribute(NO_SIGN)
    @Get("http://68.183.234.72/init")
    suspend fun wakaInit(): WakaInitResponse

    @Get("$picaAPIBaseUrl/init")
    suspend fun platformInit(@Query platform: String = "android"): Response

    /**
     * 获取历史版本
     */
    @Get("$picaAPIBaseUrl/applications")
    suspend fun getApplications(
        @Query platform: String = "android",
        @Query page: Int = 1
    ): Response
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy