package thyyxxk.webserver.service.externalhttp;

import com.dtflys.forest.annotation.*;

@BaseRequest(baseURL = "http://222.240.235.22/CSWebService/ADReportWebService.asmx")
public interface AdiconHttpSrvc {
    @Get("/Login?logid=X15024&password=Xx15024*")
    String jykLogin();

    @Get("/Login?logid=X15083&password=Xx15083*")
    String blkLogin();

    @Get("/GetReportList?Key={key}&BeginDateTime={begin}&EndDateTime={end}&TypeDateTime=2&AgainFlag=0")
    String getReportList(@Var("key") String key,
                         @Var("begin") String begin,
                         @Var("end") String end);

    @Get("/GetReportItemListByCustomerBarocde?Key={key}&CustomerBarcode={barcode}&ReportType={reportType}")
    String getReportItemListByCustomerBarcode(@Var("key") String key,
                                              @Var("barcode") String barcode,
                                              @Var("reportType") String reportType);

    @Get("/GetReportItemListByAdiconBarocde?Key={key}&AdiconBarcode={barcode}&ReportType={reportType}")
    String getReportItemListByAdiconBarcode(@Var("key") String key,
                                            @Var("barcode") String barcode,
                                            @Var("reportType") String reportType);

    @Get("/SetSampleDownFlagByCustomerBarocde?Key={key}&CustomerBarcode={barcode}&ReportType={reportType}")
    String setSampleDownFlagByCustomerBarcode(@Var("key") String key,
                                              @Var("barcode") String barcode,
                                              @Var("reportType") String reportType);

    @Get("/SetSampleDownFlagByAdiconBarocde?Key={key}&AdiconBarcode={barcode}&ReportType={reportType}")
    String setSampleDownFlagByAdiconBarcode(@Var("key") String key,
                                            @Var("barcode") String barcode,
                                            @Var("reportType") String reportType);

    @Get("/GetByteReport?Id={id}&Key={key}")
    String getByteReport(@Var("id") String id, @Var("key") String key);
}