MineApi.java 1.18 KB
package com.shunzhi.parent.api;

import com.google.gson.JsonObject;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**
 * Created by Administrator on 2018/3/7 0007.
 */

public interface MineApi {
    //    String url="http://campus.myjxt.com/";
    String url = "http://60.190.202.57:1000/";

    @FormUrlEncoded
    @POST("/api/ParentHelper/GetAreaSchool")
    Observable<JsonObject> getSchoolListResult(
            @Field("areaName") String areaName, @Field("Keyword") String Keyword);

    @FormUrlEncoded
    @POST("/api/ParentHelper/UpdateParentInfo")
    Observable<JsonObject> getChangeInfoResult(
            @Field("parentName") String parentName, @Field("sex") int sex, @Field("mobile") String mobile);

    @FormUrlEncoded
    @POST("/api/ParentHelper/BindlingChildren")
    Observable<JsonObject> addChildResult(
            @Field("parentId") int parentId, @Field("mobileFlag") boolean mobileFlag, @Field("cooperateFlag") boolean cooperateFlag
            , @Field("schoolId") int schoolId, @Field("classId") int classId, @Field("studentId") int studentId, @Field("studentUserId") String studentUserId);

}