package thyyxxk.webserver.service.externalhttp;

import com.alibaba.fastjson.JSONObject;
import com.dtflys.forest.annotation.*;

//@BaseRequest(baseURL = "http://172.16.30.33:8089/thmz")
@BaseRequest(baseURL = "http://webhis.thyy.cn:81/thmz")
public interface OutpatientBookingHttp {

    @Post("/login")
    JSONObject getToken(@JSONBody JSONObject js);

    @Get("/getAmpmByDateAndDeptCode?date={date}&deptCode={deptCode}")
    JSONObject getAmpmByDateAndDeptCode(@Header("Authorization") String Authorization,
                                        @Var("date") String date,
                                        @Var("deptCode") String deptCode);

    @Get("/getChargeTypeByRequestDayAndDoctor?unitCode={unitCode}&ampm={ampm}&date={date}&apTime={apTime}&doctorCode={}")
    JSONObject getChargeTypeByRequestDayAndDoctor(@Header("Authorization") String Authorization,
                                                  @Var("unitCode") String unitCode,
                                                  @Var("ampm") String ampm,
                                                  @Var("date") String date,
                                                  @Var("apTime") String apTime);

    @Get("/getDoctorCodeByRequestDayAndDoctor?unitCode={unitCode}&ampm={ampm}&chargeType={chargeType}&date={date}&apTime={apTime}")
    JSONObject getDoctorCodeByRequestDayAndDoctor(@Header("Authorization") String Authorization,
                                                  @Var("unitCode") String unitCode,
                                                  @Var("ampm") String ampm,
                                                  @Var("date") String date,
                                                  @Var("apTime") String apTime,
                                                  @Var("chargeType") String chargeType);

    @Get("/getMzChargeTypeByMzyRequestId?mzyRequestId={mzyRequestId}&birthDay={birthDay}&patientId={patientId}")
    JSONObject getMzChargeTypeByMzyRequestId(@Header("Authorization") String Authorization,
                                             @Var("mzyRequestId") String mzyRequestId,
                                             @Var("birthDay") String birthDay,
                                             @Var("patientId") String patientId);

    @Post("/saveMzyReqrec")
    JSONObject saveMzyReqrec(@Header("Authorization") String Authorization, @JSONBody JSONObject jsonObject);

}
