package com.ytpm.hydtw.network.api;

import com.ytpm.hydtw.dao.Config;
import com.ytpm.hydtw.dao.Question;
import com.ytpm.hydtw.dao.UserInfo;

import java.util.List;

import okhttp3.RequestBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * @author mmmmg
 * @description: 网络请求接口
 * @date :2025/06/12 10:22
 */
public interface MRefrofitInterface {


    //--------------------------dev---------------------------//
//    @GET("app-service/wx/defaultConfig")
//    Call<Result<Config>> getConfigs();
//
//    @POST("app-service/wx/login")
//    Call<Result<UserInfo>> login(@Body RequestBody requestBody);
//
//    @POST("app-service/question/answerQuestion")
//    Call<Result<Object>> answerQuestion(@Body RequestBody requestBody);
//
//    @GET("app-service/question/list")
//    Call<Result<List<Question>>> getQuestions();
//
//    @GET("app-service/wx/addPower")
//    Call<Result<Object>> addPower(@Query("userId") String userId);
//
//    @POST("app-service/ad/saveRecord")
//    Call<Result<Object>> saveRecord(@Body RequestBody requestBody);


    //--------------------------prod---------------------------//
    @GET("yt-gateway/app-service/wx/defaultConfig")
    Call<Result<Config>> getConfigs();

    @POST("yt-gateway/app-service/wx/login")
    Call<Result<UserInfo>> login(@Body RequestBody requestBody);

    @POST("yt-gateway/app-service/question/answerQuestion")
    Call<Result<Object>> answerQuestion(@Body RequestBody requestBody);

    @GET("yt-gateway/app-service/question/list")
    Call<Result<List<Question>>> getQuestions();

    @GET("yt-gateway/app-service/wx/addPower")
    Call<Result<Object>> addPower(@Query("userId") String userId);

    @POST("yt-gateway/app-service/ad/saveRecord")
    Call<Result<Object>> saveRecord(@Body RequestBody requestBody);
}
