package com.remax.visualnovel.api.service

import com.remax.visualnovel.BuildConfig
import com.remax.visualnovel.entity.request.ImgCheckDTO
import com.remax.visualnovel.entity.request.S3TypeDTO
import com.remax.visualnovel.entity.request.SimpleContentDTO
import com.remax.visualnovel.entity.response.BucketBean
import com.remax.visualnovel.entity.response.base.Response
import retrofit2.http.Body
import retrofit2.http.POST

/**
 * OSS文件上传
 *
 */
interface OssService {
    /**
     * 获取aws s3 bucket信息
     */
    @POST(BuildConfig.API_SHARK + "/web/file/sts-tk")
    suspend fun getS3Bucket(@Body dto: S3TypeDTO): Response<BucketBean>

    /**
     * 图片鉴黄
     */
    @POST(BuildConfig.API_SHARK + "/web/file/check")
    suspend fun checkS3Img(
        @Body imgCheckDTO: ImgCheckDTO
    ): Response<Any>

    /**
     * 关键字校验
     */
    @POST("/web/check_text")
    suspend fun checkText(
        @Body simpleContentDTO: SimpleContentDTO
    ): Response<Any>

}