parent
d9a7467e70
commit
71264e9ac3
@ -1,4 +1,4 @@ |
|||||||
package cn.linghang.mywust.core.request; |
package cn.linghang.mywust.core.request.factory; |
||||||
|
|
||||||
import cn.linghang.mywust.network.entitys.HttpRequest; |
import cn.linghang.mywust.network.entitys.HttpRequest; |
||||||
|
|
@ -1,7 +1,7 @@ |
|||||||
package cn.linghang.mywust.core.request.auth; |
package cn.linghang.mywust.core.request.factory.auth; |
||||||
|
|
||||||
import cn.linghang.mywust.core.api.UnionAuthUrls; |
import cn.linghang.mywust.core.api.UnionAuthUrls; |
||||||
import cn.linghang.mywust.core.request.RequestFactory; |
import cn.linghang.mywust.core.request.factory.RequestFactory; |
||||||
import cn.linghang.mywust.network.entitys.HttpRequest; |
import cn.linghang.mywust.network.entitys.HttpRequest; |
||||||
import cn.linghang.mywust.util.StringUtil; |
import cn.linghang.mywust.util.StringUtil; |
||||||
|
|
@ -1,8 +1,8 @@ |
|||||||
package cn.linghang.mywust.core.request.graduate; |
package cn.linghang.mywust.core.request.factory.graduate; |
||||||
|
|
||||||
import cn.linghang.mywust.captcha.SolvedImageCaptcha; |
import cn.linghang.mywust.captcha.SolvedImageCaptcha; |
||||||
import cn.linghang.mywust.core.api.GraduateUrls; |
import cn.linghang.mywust.core.api.GraduateUrls; |
||||||
import cn.linghang.mywust.core.request.RequestFactory; |
import cn.linghang.mywust.core.request.factory.RequestFactory; |
||||||
import cn.linghang.mywust.network.entitys.HttpRequest; |
import cn.linghang.mywust.network.entitys.HttpRequest; |
||||||
import cn.linghang.mywust.util.StringUtil; |
import cn.linghang.mywust.util.StringUtil; |
||||||
|
|
@ -1,7 +1,7 @@ |
|||||||
package cn.linghang.mywust.core.request.library; |
package cn.linghang.mywust.core.request.factory.library; |
||||||
|
|
||||||
import cn.linghang.mywust.core.api.LibraryUrls; |
import cn.linghang.mywust.core.api.LibraryUrls; |
||||||
import cn.linghang.mywust.core.request.RequestFactory; |
import cn.linghang.mywust.core.request.factory.RequestFactory; |
||||||
import cn.linghang.mywust.network.entitys.HttpRequest; |
import cn.linghang.mywust.network.entitys.HttpRequest; |
||||||
|
|
||||||
public class LibraryRequestFactory extends RequestFactory { |
public class LibraryRequestFactory extends RequestFactory { |
@ -1,4 +1,4 @@ |
|||||||
package cn.linghang.mywust.core.request.library.response; |
package cn.linghang.mywust.core.request.factory.library.response; |
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty; |
import com.fasterxml.jackson.annotation.JsonProperty; |
||||||
import lombok.Data; |
import lombok.Data; |
@ -1,4 +1,4 @@ |
|||||||
package cn.linghang.mywust.core.request.library.response; |
package cn.linghang.mywust.core.request.factory.library.response; |
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty; |
import com.fasterxml.jackson.annotation.JsonProperty; |
||||||
import lombok.Data; |
import lombok.Data; |
@ -1,4 +1,4 @@ |
|||||||
package cn.linghang.mywust.core.request.library.response; |
package cn.linghang.mywust.core.request.factory.library.response; |
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty; |
import com.fasterxml.jackson.annotation.JsonProperty; |
||||||
import lombok.Data; |
import lombok.Data; |
@ -1,4 +1,4 @@ |
|||||||
package cn.linghang.mywust.core.request.library.response; |
package cn.linghang.mywust.core.request.factory.library.response; |
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty; |
import com.fasterxml.jackson.annotation.JsonProperty; |
||||||
import lombok.Data; |
import lombok.Data; |
@ -1,4 +1,4 @@ |
|||||||
package cn.linghang.mywust.core.request.library.response; |
package cn.linghang.mywust.core.request.factory.library.response; |
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty; |
import com.fasterxml.jackson.annotation.JsonProperty; |
||||||
import lombok.Data; |
import lombok.Data; |
@ -1,4 +1,4 @@ |
|||||||
package cn.linghang.mywust.core.request.library.response; |
package cn.linghang.mywust.core.request.factory.library.response; |
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty; |
import com.fasterxml.jackson.annotation.JsonProperty; |
||||||
|
|
@ -1,4 +1,4 @@ |
|||||||
package cn.linghang.mywust.core.request.library.response; |
package cn.linghang.mywust.core.request.factory.library.response; |
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty; |
import com.fasterxml.jackson.annotation.JsonProperty; |
||||||
import lombok.Data; |
import lombok.Data; |
@ -1,12 +1,11 @@ |
|||||||
package cn.linghang.mywust.core.request.physics; |
package cn.linghang.mywust.core.request.factory.physics; |
||||||
|
|
||||||
import cn.linghang.mywust.core.api.PhysicsSystemUrls; |
import cn.linghang.mywust.core.api.PhysicsSystemUrls; |
||||||
import cn.linghang.mywust.core.request.RequestFactory; |
import cn.linghang.mywust.core.request.factory.RequestFactory; |
||||||
import cn.linghang.mywust.core.util.PageFormExtractor; |
import cn.linghang.mywust.core.util.PageFormExtractor; |
||||||
import cn.linghang.mywust.network.entitys.HttpRequest; |
import cn.linghang.mywust.network.entitys.HttpRequest; |
||||||
import cn.linghang.mywust.util.StringUtil; |
import cn.linghang.mywust.util.StringUtil; |
||||||
|
|
||||||
import java.nio.charset.StandardCharsets; |
|
||||||
import java.util.HashMap; |
import java.util.HashMap; |
||||||
import java.util.Map; |
import java.util.Map; |
||||||
|
|
@ -1,7 +1,7 @@ |
|||||||
package cn.linghang.mywust.core.request.undergrade; |
package cn.linghang.mywust.core.request.factory.undergrade; |
||||||
|
|
||||||
import cn.linghang.mywust.core.api.UndergradUrls; |
import cn.linghang.mywust.core.api.UndergradUrls; |
||||||
import cn.linghang.mywust.core.request.RequestFactory; |
import cn.linghang.mywust.core.request.factory.RequestFactory; |
||||||
import cn.linghang.mywust.data.global.Campus; |
import cn.linghang.mywust.data.global.Campus; |
||||||
import cn.linghang.mywust.network.entitys.FormBodyBuilder; |
import cn.linghang.mywust.network.entitys.FormBodyBuilder; |
||||||
import cn.linghang.mywust.network.entitys.HttpRequest; |
import cn.linghang.mywust.network.entitys.HttpRequest; |
@ -1,4 +1,4 @@ |
|||||||
package cn.linghang.mywust.core.request.undergrade; |
package cn.linghang.mywust.core.request.factory.undergrade; |
||||||
|
|
||||||
import cn.linghang.mywust.network.entitys.FormBodyBuilder; |
import cn.linghang.mywust.network.entitys.FormBodyBuilder; |
||||||
|
|
@ -1,12 +1,12 @@ |
|||||||
package cn.linghang.mywust.core.service.auth; |
package cn.linghang.mywust.core.request.service.auth; |
||||||
|
|
||||||
import cn.linghang.mywust.captcha.SolvedImageCaptcha; |
import cn.linghang.mywust.captcha.SolvedImageCaptcha; |
||||||
import cn.linghang.mywust.captcha.UnsolvedImageCaptcha; |
import cn.linghang.mywust.captcha.UnsolvedImageCaptcha; |
||||||
import cn.linghang.mywust.core.api.GraduateUrls; |
import cn.linghang.mywust.core.api.GraduateUrls; |
||||||
import cn.linghang.mywust.core.exception.ApiException; |
import cn.linghang.mywust.core.exception.ApiException; |
||||||
import cn.linghang.mywust.core.request.RequestFactory; |
import cn.linghang.mywust.core.request.factory.RequestFactory; |
||||||
import cn.linghang.mywust.core.request.graduate.GraduateRequestFactory; |
import cn.linghang.mywust.core.request.factory.graduate.GraduateRequestFactory; |
||||||
import cn.linghang.mywust.core.service.captcha.solver.CaptchaSolver; |
import cn.linghang.mywust.core.request.service.captcha.solver.CaptchaSolver; |
||||||
import cn.linghang.mywust.network.RequestClientOption; |
import cn.linghang.mywust.network.RequestClientOption; |
||||||
import cn.linghang.mywust.network.Requester; |
import cn.linghang.mywust.network.Requester; |
||||||
import cn.linghang.mywust.network.entitys.HttpRequest; |
import cn.linghang.mywust.network.entitys.HttpRequest; |
@ -1,9 +1,9 @@ |
|||||||
package cn.linghang.mywust.core.service.auth; |
package cn.linghang.mywust.core.request.service.auth; |
||||||
|
|
||||||
import cn.linghang.mywust.core.api.LibraryUrls; |
import cn.linghang.mywust.core.api.LibraryUrls; |
||||||
import cn.linghang.mywust.core.api.UnionAuthUrls; |
import cn.linghang.mywust.core.api.UnionAuthUrls; |
||||||
import cn.linghang.mywust.core.exception.ApiException; |
import cn.linghang.mywust.core.exception.ApiException; |
||||||
import cn.linghang.mywust.core.request.library.LibraryRequestFactory; |
import cn.linghang.mywust.core.request.factory.library.LibraryRequestFactory; |
||||||
import cn.linghang.mywust.network.RequestClientOption; |
import cn.linghang.mywust.network.RequestClientOption; |
||||||
import cn.linghang.mywust.network.Requester; |
import cn.linghang.mywust.network.Requester; |
||||||
import cn.linghang.mywust.network.entitys.HttpRequest; |
import cn.linghang.mywust.network.entitys.HttpRequest; |
@ -1,10 +1,9 @@ |
|||||||
package cn.linghang.mywust.core.service.auth; |
package cn.linghang.mywust.core.request.service.auth; |
||||||
|
|
||||||
import cn.linghang.mywust.core.exception.ApiException; |
import cn.linghang.mywust.core.exception.ApiException; |
||||||
import cn.linghang.mywust.core.exception.BasicException; |
|
||||||
import cn.linghang.mywust.core.exception.ParseException; |
import cn.linghang.mywust.core.exception.ParseException; |
||||||
import cn.linghang.mywust.core.parser.physics.PhysicsIndexPageParser; |
import cn.linghang.mywust.core.parser.physics.PhysicsIndexPageParser; |
||||||
import cn.linghang.mywust.core.request.physics.PhysicsSystemRequestFactory; |
import cn.linghang.mywust.core.request.factory.physics.PhysicsSystemRequestFactory; |
||||||
import cn.linghang.mywust.network.RequestClientOption; |
import cn.linghang.mywust.network.RequestClientOption; |
||||||
import cn.linghang.mywust.network.Requester; |
import cn.linghang.mywust.network.Requester; |
||||||
import cn.linghang.mywust.network.entitys.HttpRequest; |
import cn.linghang.mywust.network.entitys.HttpRequest; |
@ -1,9 +1,9 @@ |
|||||||
package cn.linghang.mywust.core.service.auth; |
package cn.linghang.mywust.core.request.service.auth; |
||||||
|
|
||||||
import cn.linghang.mywust.core.api.UndergradUrls; |
import cn.linghang.mywust.core.api.UndergradUrls; |
||||||
import cn.linghang.mywust.core.api.UnionAuthUrls; |
import cn.linghang.mywust.core.api.UnionAuthUrls; |
||||||
import cn.linghang.mywust.core.exception.ApiException; |
import cn.linghang.mywust.core.exception.ApiException; |
||||||
import cn.linghang.mywust.core.request.undergrade.BkjxRequestFactory; |
import cn.linghang.mywust.core.request.factory.undergrade.BkjxRequestFactory; |
||||||
import cn.linghang.mywust.network.RequestClientOption; |
import cn.linghang.mywust.network.RequestClientOption; |
||||||
import cn.linghang.mywust.network.Requester; |
import cn.linghang.mywust.network.Requester; |
||||||
import cn.linghang.mywust.network.entitys.HttpRequest; |
import cn.linghang.mywust.network.entitys.HttpRequest; |
@ -1,7 +1,7 @@ |
|||||||
package cn.linghang.mywust.core.service.auth; |
package cn.linghang.mywust.core.request.service.auth; |
||||||
|
|
||||||
import cn.linghang.mywust.core.exception.ApiException; |
import cn.linghang.mywust.core.exception.ApiException; |
||||||
import cn.linghang.mywust.core.request.auth.UnionAuthRequestFactory; |
import cn.linghang.mywust.core.request.factory.auth.UnionAuthRequestFactory; |
||||||
import cn.linghang.mywust.network.RequestClientOption; |
import cn.linghang.mywust.network.RequestClientOption; |
||||||
import cn.linghang.mywust.network.Requester; |
import cn.linghang.mywust.network.Requester; |
||||||
import cn.linghang.mywust.network.entitys.HttpRequest; |
import cn.linghang.mywust.network.entitys.HttpRequest; |
@ -1,4 +1,4 @@ |
|||||||
package cn.linghang.mywust.core.service.captcha.solver; |
package cn.linghang.mywust.core.request.service.captcha.solver; |
||||||
|
|
||||||
import cn.linghang.mywust.captcha.SolvedImageCaptcha; |
import cn.linghang.mywust.captcha.SolvedImageCaptcha; |
||||||
import cn.linghang.mywust.captcha.UnsolvedImageCaptcha; |
import cn.linghang.mywust.captcha.UnsolvedImageCaptcha; |
@ -1,9 +1,9 @@ |
|||||||
package cn.linghang.mywust.core.service.captcha.solver; |
package cn.linghang.mywust.core.request.service.captcha.solver; |
||||||
|
|
||||||
import cn.linghang.mywust.captcha.SolvedImageCaptcha; |
import cn.linghang.mywust.captcha.SolvedImageCaptcha; |
||||||
import cn.linghang.mywust.captcha.UnsolvedImageCaptcha; |
import cn.linghang.mywust.captcha.UnsolvedImageCaptcha; |
||||||
import cn.linghang.mywust.core.exception.ApiException; |
import cn.linghang.mywust.core.exception.ApiException; |
||||||
import cn.linghang.mywust.core.request.RequestFactory; |
import cn.linghang.mywust.core.request.factory.RequestFactory; |
||||||
import cn.linghang.mywust.network.Requester; |
import cn.linghang.mywust.network.Requester; |
||||||
import cn.linghang.mywust.network.entitys.HttpRequest; |
import cn.linghang.mywust.network.entitys.HttpRequest; |
||||||
import cn.linghang.mywust.network.entitys.HttpResponse; |
import cn.linghang.mywust.network.entitys.HttpResponse; |
@ -1,9 +1,9 @@ |
|||||||
package cn.linghang.mywust.core.service.captcha.solver; |
package cn.linghang.mywust.core.request.service.captcha.solver; |
||||||
|
|
||||||
import cn.linghang.mywust.captcha.SolvedImageCaptcha; |
import cn.linghang.mywust.captcha.SolvedImageCaptcha; |
||||||
import cn.linghang.mywust.captcha.UnsolvedImageCaptcha; |
import cn.linghang.mywust.captcha.UnsolvedImageCaptcha; |
||||||
import cn.linghang.mywust.core.exception.ApiException; |
import cn.linghang.mywust.core.exception.ApiException; |
||||||
import cn.linghang.mywust.core.request.RequestFactory; |
import cn.linghang.mywust.core.request.factory.RequestFactory; |
||||||
import cn.linghang.mywust.network.RequestClientOption; |
import cn.linghang.mywust.network.RequestClientOption; |
||||||
import cn.linghang.mywust.network.Requester; |
import cn.linghang.mywust.network.Requester; |
||||||
import cn.linghang.mywust.network.entitys.HttpRequest; |
import cn.linghang.mywust.network.entitys.HttpRequest; |
@ -1,8 +1,8 @@ |
|||||||
package cn.linghang.mywust.core.service.graduate; |
package cn.linghang.mywust.core.request.service.graduate; |
||||||
|
|
||||||
import cn.linghang.mywust.core.api.GraduateUrls; |
import cn.linghang.mywust.core.api.GraduateUrls; |
||||||
import cn.linghang.mywust.core.exception.ApiException; |
import cn.linghang.mywust.core.exception.ApiException; |
||||||
import cn.linghang.mywust.core.request.RequestFactory; |
import cn.linghang.mywust.core.request.factory.RequestFactory; |
||||||
import cn.linghang.mywust.network.RequestClientOption; |
import cn.linghang.mywust.network.RequestClientOption; |
||||||
import cn.linghang.mywust.network.Requester; |
import cn.linghang.mywust.network.Requester; |
||||||
import cn.linghang.mywust.network.entitys.HttpRequest; |
import cn.linghang.mywust.network.entitys.HttpRequest; |
@ -1,7 +1,7 @@ |
|||||||
package cn.linghang.mywust.core.service.graduate; |
package cn.linghang.mywust.core.request.service.graduate; |
||||||
|
|
||||||
import cn.linghang.mywust.core.exception.ApiException; |
import cn.linghang.mywust.core.exception.ApiException; |
||||||
import cn.linghang.mywust.core.request.graduate.GraduateRequestFactory; |
import cn.linghang.mywust.core.request.factory.graduate.GraduateRequestFactory; |
||||||
import cn.linghang.mywust.network.RequestClientOption; |
import cn.linghang.mywust.network.RequestClientOption; |
||||||
import cn.linghang.mywust.network.Requester; |
import cn.linghang.mywust.network.Requester; |
||||||
import cn.linghang.mywust.network.entitys.HttpRequest; |
import cn.linghang.mywust.network.entitys.HttpRequest; |
@ -1,7 +1,7 @@ |
|||||||
package cn.linghang.mywust.core.service.graduate; |
package cn.linghang.mywust.core.request.service.graduate; |
||||||
|
|
||||||
import cn.linghang.mywust.core.exception.ApiException; |
import cn.linghang.mywust.core.exception.ApiException; |
||||||
import cn.linghang.mywust.core.request.graduate.GraduateRequestFactory; |
import cn.linghang.mywust.core.request.factory.graduate.GraduateRequestFactory; |
||||||
import cn.linghang.mywust.network.RequestClientOption; |
import cn.linghang.mywust.network.RequestClientOption; |
||||||
import cn.linghang.mywust.network.Requester; |
import cn.linghang.mywust.network.Requester; |
||||||
import cn.linghang.mywust.network.entitys.HttpRequest; |
import cn.linghang.mywust.network.entitys.HttpRequest; |
@ -1,7 +1,7 @@ |
|||||||
package cn.linghang.mywust.core.service.graduate; |
package cn.linghang.mywust.core.request.service.graduate; |
||||||
|
|
||||||
import cn.linghang.mywust.core.exception.ApiException; |
import cn.linghang.mywust.core.exception.ApiException; |
||||||
import cn.linghang.mywust.core.request.graduate.GraduateRequestFactory; |
import cn.linghang.mywust.core.request.factory.graduate.GraduateRequestFactory; |
||||||
import cn.linghang.mywust.network.RequestClientOption; |
import cn.linghang.mywust.network.RequestClientOption; |
||||||
import cn.linghang.mywust.network.Requester; |
import cn.linghang.mywust.network.Requester; |
||||||
import cn.linghang.mywust.network.entitys.HttpRequest; |
import cn.linghang.mywust.network.entitys.HttpRequest; |
@ -1,7 +1,7 @@ |
|||||||
package cn.linghang.mywust.core.service.graduate; |
package cn.linghang.mywust.core.request.service.graduate; |
||||||
|
|
||||||
import cn.linghang.mywust.core.exception.ApiException; |
import cn.linghang.mywust.core.exception.ApiException; |
||||||
import cn.linghang.mywust.core.request.graduate.GraduateRequestFactory; |
import cn.linghang.mywust.core.request.factory.graduate.GraduateRequestFactory; |
||||||
import cn.linghang.mywust.network.RequestClientOption; |
import cn.linghang.mywust.network.RequestClientOption; |
||||||
import cn.linghang.mywust.network.Requester; |
import cn.linghang.mywust.network.Requester; |
||||||
import cn.linghang.mywust.network.entitys.HttpRequest; |
import cn.linghang.mywust.network.entitys.HttpRequest; |
@ -1,4 +1,4 @@ |
|||||||
package cn.linghang.mywust.core.service.physics; |
package cn.linghang.mywust.core.request.service.physics; |
||||||
|
|
||||||
import cn.linghang.mywust.core.exception.ApiException; |
import cn.linghang.mywust.core.exception.ApiException; |
||||||
import cn.linghang.mywust.network.Requester; |
import cn.linghang.mywust.network.Requester; |
@ -1,7 +1,7 @@ |
|||||||
package cn.linghang.mywust.core.service.physics; |
package cn.linghang.mywust.core.request.service.physics; |
||||||
|
|
||||||
import cn.linghang.mywust.core.exception.ApiException; |
import cn.linghang.mywust.core.exception.ApiException; |
||||||
import cn.linghang.mywust.core.request.physics.PhysicsSystemRequestFactory; |
import cn.linghang.mywust.core.request.factory.physics.PhysicsSystemRequestFactory; |
||||||
import cn.linghang.mywust.network.RequestClientOption; |
import cn.linghang.mywust.network.RequestClientOption; |
||||||
import cn.linghang.mywust.network.Requester; |
import cn.linghang.mywust.network.Requester; |
||||||
import cn.linghang.mywust.network.entitys.HttpRequest; |
import cn.linghang.mywust.network.entitys.HttpRequest; |
@ -1,9 +1,9 @@ |
|||||||
package cn.linghang.mywust.core.service.physics; |
package cn.linghang.mywust.core.request.service.physics; |
||||||
|
|
||||||
import cn.linghang.mywust.core.exception.ApiException; |
import cn.linghang.mywust.core.exception.ApiException; |
||||||
import cn.linghang.mywust.core.exception.ParseException; |
import cn.linghang.mywust.core.exception.ParseException; |
||||||
import cn.linghang.mywust.core.parser.physics.PhysicsScoreListPageParser; |
import cn.linghang.mywust.core.parser.physics.PhysicsScoreListPageParser; |
||||||
import cn.linghang.mywust.core.request.physics.PhysicsSystemRequestFactory; |
import cn.linghang.mywust.core.request.factory.physics.PhysicsSystemRequestFactory; |
||||||
import cn.linghang.mywust.core.util.PageFormExtractor; |
import cn.linghang.mywust.core.util.PageFormExtractor; |
||||||
import cn.linghang.mywust.network.RequestClientOption; |
import cn.linghang.mywust.network.RequestClientOption; |
||||||
import cn.linghang.mywust.network.Requester; |
import cn.linghang.mywust.network.Requester; |
@ -1,8 +1,8 @@ |
|||||||
package cn.linghang.mywust.core.service.undergraduate; |
package cn.linghang.mywust.core.request.service.undergraduate; |
||||||
|
|
||||||
import cn.linghang.mywust.core.api.UndergradUrls; |
import cn.linghang.mywust.core.api.UndergradUrls; |
||||||
import cn.linghang.mywust.core.exception.ApiException; |
import cn.linghang.mywust.core.exception.ApiException; |
||||||
import cn.linghang.mywust.core.request.RequestFactory; |
import cn.linghang.mywust.core.request.factory.RequestFactory; |
||||||
import cn.linghang.mywust.core.util.BkjxUtil; |
import cn.linghang.mywust.core.util.BkjxUtil; |
||||||
import cn.linghang.mywust.network.RequestClientOption; |
import cn.linghang.mywust.network.RequestClientOption; |
||||||
import cn.linghang.mywust.network.Requester; |
import cn.linghang.mywust.network.Requester; |
@ -1,7 +1,7 @@ |
|||||||
package cn.linghang.mywust.core.service.undergraduate; |
package cn.linghang.mywust.core.request.service.undergraduate; |
||||||
|
|
||||||
import cn.linghang.mywust.core.exception.ApiException; |
import cn.linghang.mywust.core.exception.ApiException; |
||||||
import cn.linghang.mywust.core.request.undergrade.BkjxRequestFactory; |
import cn.linghang.mywust.core.request.factory.undergrade.BkjxRequestFactory; |
||||||
import cn.linghang.mywust.network.RequestClientOption; |
import cn.linghang.mywust.network.RequestClientOption; |
||||||
import cn.linghang.mywust.network.Requester; |
import cn.linghang.mywust.network.Requester; |
||||||
import cn.linghang.mywust.network.entitys.HttpRequest; |
import cn.linghang.mywust.network.entitys.HttpRequest; |
@ -1,9 +1,9 @@ |
|||||||
package cn.linghang.mywust.core.service.undergraduate; |
package cn.linghang.mywust.core.request.service.undergraduate; |
||||||
|
|
||||||
import cn.linghang.mywust.core.exception.ApiException; |
import cn.linghang.mywust.core.exception.ApiException; |
||||||
import cn.linghang.mywust.core.exception.ParseException; |
import cn.linghang.mywust.core.exception.ParseException; |
||||||
import cn.linghang.mywust.core.parser.undergraduate.UndergradCreditStatusIndexParser; |
import cn.linghang.mywust.core.parser.undergraduate.UndergradCreditStatusIndexParser; |
||||||
import cn.linghang.mywust.core.request.undergrade.BkjxRequestFactory; |
import cn.linghang.mywust.core.request.factory.undergrade.BkjxRequestFactory; |
||||||
import cn.linghang.mywust.network.RequestClientOption; |
import cn.linghang.mywust.network.RequestClientOption; |
||||||
import cn.linghang.mywust.network.Requester; |
import cn.linghang.mywust.network.Requester; |
||||||
import cn.linghang.mywust.network.entitys.HttpRequest; |
import cn.linghang.mywust.network.entitys.HttpRequest; |
@ -1,7 +1,7 @@ |
|||||||
package cn.linghang.mywust.core.service.undergraduate; |
package cn.linghang.mywust.core.request.service.undergraduate; |
||||||
|
|
||||||
import cn.linghang.mywust.core.exception.ApiException; |
import cn.linghang.mywust.core.exception.ApiException; |
||||||
import cn.linghang.mywust.core.request.undergrade.BkjxRequestFactory; |
import cn.linghang.mywust.core.request.factory.undergrade.BkjxRequestFactory; |
||||||
import cn.linghang.mywust.network.RequestClientOption; |
import cn.linghang.mywust.network.RequestClientOption; |
||||||
import cn.linghang.mywust.network.Requester; |
import cn.linghang.mywust.network.Requester; |
||||||
import cn.linghang.mywust.network.entitys.HttpRequest; |
import cn.linghang.mywust.network.entitys.HttpRequest; |
@ -1,7 +1,7 @@ |
|||||||
package cn.linghang.mywust.core.service.undergraduate; |
package cn.linghang.mywust.core.request.service.undergraduate; |
||||||
|
|
||||||
import cn.linghang.mywust.core.exception.ApiException; |
import cn.linghang.mywust.core.exception.ApiException; |
||||||
import cn.linghang.mywust.core.request.undergrade.BkjxRequestFactory; |
import cn.linghang.mywust.core.request.factory.undergrade.BkjxRequestFactory; |
||||||
import cn.linghang.mywust.network.RequestClientOption; |
import cn.linghang.mywust.network.RequestClientOption; |
||||||
import cn.linghang.mywust.network.Requester; |
import cn.linghang.mywust.network.Requester; |
||||||
import cn.linghang.mywust.network.entitys.HttpRequest; |
import cn.linghang.mywust.network.entitys.HttpRequest; |
@ -1,7 +1,7 @@ |
|||||||
package cn.linghang.mywust.core.service.undergraduate; |
package cn.linghang.mywust.core.request.service.undergraduate; |
||||||
|
|
||||||
import cn.linghang.mywust.core.exception.ApiException; |
import cn.linghang.mywust.core.exception.ApiException; |
||||||
import cn.linghang.mywust.core.request.undergrade.BkjxRequestFactory; |
import cn.linghang.mywust.core.request.factory.undergrade.BkjxRequestFactory; |
||||||
import cn.linghang.mywust.network.RequestClientOption; |
import cn.linghang.mywust.network.RequestClientOption; |
||||||
import cn.linghang.mywust.network.Requester; |
import cn.linghang.mywust.network.Requester; |
||||||
import cn.linghang.mywust.network.entitys.HttpRequest; |
import cn.linghang.mywust.network.entitys.HttpRequest; |
@ -1,7 +1,7 @@ |
|||||||
package cn.linghang.mywust.core.service.undergraduate; |
package cn.linghang.mywust.core.request.service.undergraduate; |
||||||
|
|
||||||
import cn.linghang.mywust.core.exception.ApiException; |
import cn.linghang.mywust.core.exception.ApiException; |
||||||
import cn.linghang.mywust.core.request.undergrade.BkjxRequestFactory; |
import cn.linghang.mywust.core.request.factory.undergrade.BkjxRequestFactory; |
||||||
import cn.linghang.mywust.network.RequestClientOption; |
import cn.linghang.mywust.network.RequestClientOption; |
||||||
import cn.linghang.mywust.network.Requester; |
import cn.linghang.mywust.network.Requester; |
||||||
import cn.linghang.mywust.network.entitys.HttpRequest; |
import cn.linghang.mywust.network.entitys.HttpRequest; |
@ -1,8 +1,8 @@ |
|||||||
package cn.linghang.mywust.core.service.undergraduate.global; |
package cn.linghang.mywust.core.request.service.undergraduate.global; |
||||||
|
|
||||||
import cn.linghang.mywust.core.exception.ApiException; |
import cn.linghang.mywust.core.exception.ApiException; |
||||||
import cn.linghang.mywust.core.request.undergrade.global.BkjxAllCourseRequestFactory; |
import cn.linghang.mywust.core.request.factory.undergrade.global.BkjxAllCourseRequestFactory; |
||||||
import cn.linghang.mywust.core.service.undergraduate.UndergradApiServiceBase; |
import cn.linghang.mywust.core.request.service.undergraduate.UndergradApiServiceBase; |
||||||
import cn.linghang.mywust.network.RequestClientOption; |
import cn.linghang.mywust.network.RequestClientOption; |
||||||
import cn.linghang.mywust.network.Requester; |
import cn.linghang.mywust.network.Requester; |
||||||
import cn.linghang.mywust.network.entitys.HttpRequest; |
import cn.linghang.mywust.network.entitys.HttpRequest; |
@ -1,9 +1,9 @@ |
|||||||
package cn.linghang.mywust.core.service.undergraduate.global; |
package cn.linghang.mywust.core.request.service.undergraduate.global; |
||||||
|
|
||||||
import cn.linghang.mywust.core.api.ConstantParams; |
import cn.linghang.mywust.core.api.ConstantParams; |
||||||
import cn.linghang.mywust.core.exception.ApiException; |
import cn.linghang.mywust.core.exception.ApiException; |
||||||
import cn.linghang.mywust.core.request.undergrade.BkjxRequestFactory; |
import cn.linghang.mywust.core.request.factory.undergrade.BkjxRequestFactory; |
||||||
import cn.linghang.mywust.core.service.undergraduate.UndergradApiServiceBase; |
import cn.linghang.mywust.core.request.service.undergraduate.UndergradApiServiceBase; |
||||||
import cn.linghang.mywust.data.global.Building; |
import cn.linghang.mywust.data.global.Building; |
||||||
import cn.linghang.mywust.data.global.Campus; |
import cn.linghang.mywust.data.global.Campus; |
||||||
import cn.linghang.mywust.network.RequestClientOption; |
import cn.linghang.mywust.network.RequestClientOption; |
@ -1,8 +1,8 @@ |
|||||||
package cn.linghang.mywust.core.service.undergraduate.global; |
package cn.linghang.mywust.core.request.service.undergraduate.global; |
||||||
|
|
||||||
import cn.linghang.mywust.core.exception.ApiException; |
import cn.linghang.mywust.core.exception.ApiException; |
||||||
import cn.linghang.mywust.core.request.undergrade.global.BkjxAllCourseRequestFactory; |
import cn.linghang.mywust.core.request.factory.undergrade.global.BkjxAllCourseRequestFactory; |
||||||
import cn.linghang.mywust.core.service.undergraduate.UndergradApiServiceBase; |
import cn.linghang.mywust.core.request.service.undergraduate.UndergradApiServiceBase; |
||||||
import cn.linghang.mywust.network.RequestClientOption; |
import cn.linghang.mywust.network.RequestClientOption; |
||||||
import cn.linghang.mywust.network.Requester; |
import cn.linghang.mywust.network.Requester; |
||||||
import cn.linghang.mywust.network.entitys.HttpRequest; |
import cn.linghang.mywust.network.entitys.HttpRequest; |
@ -1,8 +1,8 @@ |
|||||||
package cn.linghang.mywust.core.service.undergraduate.global; |
package cn.linghang.mywust.core.request.service.undergraduate.global; |
||||||
|
|
||||||
import cn.linghang.mywust.core.exception.ApiException; |
import cn.linghang.mywust.core.exception.ApiException; |
||||||
import cn.linghang.mywust.core.request.undergrade.global.BkjxAllCourseRequestFactory; |
import cn.linghang.mywust.core.request.factory.undergrade.global.BkjxAllCourseRequestFactory; |
||||||
import cn.linghang.mywust.core.service.undergraduate.UndergradApiServiceBase; |
import cn.linghang.mywust.core.request.service.undergraduate.UndergradApiServiceBase; |
||||||
import cn.linghang.mywust.network.RequestClientOption; |
import cn.linghang.mywust.network.RequestClientOption; |
||||||
import cn.linghang.mywust.network.Requester; |
import cn.linghang.mywust.network.Requester; |
||||||
import cn.linghang.mywust.network.entitys.HttpRequest; |
import cn.linghang.mywust.network.entitys.HttpRequest; |
@ -1,4 +0,0 @@ |
|||||||
package cn.linghang.mywust.core.service.library; |
|
||||||
|
|
||||||
public class LibraryApiService { |
|
||||||
} |
|
@ -1,51 +0,0 @@ |
|||||||
import cn.linghang.mywust.core.exception.ApiException; |
|
||||||
import cn.linghang.mywust.core.exception.ParseException; |
|
||||||
import cn.linghang.mywust.core.parser.Parser; |
|
||||||
import cn.linghang.mywust.core.parser.physics.PhysicsCoursePageParser; |
|
||||||
import cn.linghang.mywust.core.parser.undergraduate.UndergradCreditStatusParser; |
|
||||||
import cn.linghang.mywust.core.parser.undergraduate.UndergradExamDelayParser; |
|
||||||
import cn.linghang.mywust.core.service.auth.PhysicsLogin; |
|
||||||
import cn.linghang.mywust.core.service.auth.UndergraduateLogin; |
|
||||||
import cn.linghang.mywust.core.service.physics.PhysicsApiService; |
|
||||||
import cn.linghang.mywust.core.service.undergraduate.UndergradCreditStatusApiService; |
|
||||||
import cn.linghang.mywust.core.service.undergraduate.UndergradExamDelayApiService; |
|
||||||
import cn.linghang.mywust.model.global.Course; |
|
||||||
import cn.linghang.mywust.model.physics.PhysicsCourse; |
|
||||||
import cn.linghang.mywust.model.undergrad.ExamDelayApplication; |
|
||||||
import cn.linghang.mywust.network.RequestClientOption; |
|
||||||
import cn.linghang.mywust.network.Requester; |
|
||||||
import cn.linghang.mywust.network.okhttp.SimpleOkhttpRequester; |
|
||||||
import org.jsoup.Jsoup; |
|
||||||
|
|
||||||
import java.io.IOException; |
|
||||||
import java.util.List; |
|
||||||
import java.util.Scanner; |
|
||||||
|
|
||||||
public class ParseTest { |
|
||||||
public static void main(String[] args) throws IOException, ParseException, ApiException { |
|
||||||
// Scanner scanner = new Scanner(System.in);
|
|
||||||
//
|
|
||||||
// String cookie = scanner.nextLine();
|
|
||||||
//
|
|
||||||
// System.out.println("Cookie:" + cookie);
|
|
||||||
//
|
|
||||||
// Requester requester = new SimpleOkhttpRequester();
|
|
||||||
// UndergradExamDelayApiService service = new UndergradExamDelayApiService(requester);
|
|
||||||
//
|
|
||||||
// RequestClientOption option = new RequestClientOption();
|
|
||||||
// RequestClientOption.Proxy proxy = RequestClientOption.Proxy.builder().build();
|
|
||||||
// proxy.setAddress("127.0.0.1");
|
|
||||||
// proxy.setPort(8080);
|
|
||||||
// option.setProxy(proxy);
|
|
||||||
//
|
|
||||||
// String data = service.getPage("2022-2023-1", "9FF84C58B1CA4BDBB656E4C224B617A9", cookie, option);
|
|
||||||
// System.out.println(data);
|
|
||||||
|
|
||||||
String html = Jsoup.connect("http://localhost/xf.html").get().toString(); |
|
||||||
|
|
||||||
UndergradCreditStatusParser parser = new UndergradCreditStatusParser(); |
|
||||||
String result = parser.parse(html); |
|
||||||
|
|
||||||
System.out.println(result); |
|
||||||
} |
|
||||||
} |
|
Loading…
Reference in new issue