|
@@ -27,7 +27,7 @@ enum CoachAPI {
|
|
|
//查询签到记录
|
|
|
case stuTmsSignListByStuId(pageNum:Int ,pageSize:Int ,stuOutId:Int,city:String)
|
|
|
//查询人脸比对记录
|
|
|
- case stuTmsLogFacListByStuId(pageNum:Int ,pageSize:Int ,stuOutId:Int,city:String)
|
|
|
+ case stuTmsLogFaceListByStuId(pageNum:Int ,pageSize:Int ,stuOutId:Int,city:String)
|
|
|
}
|
|
|
|
|
|
extension CoachAPI: TargetType {
|
|
@@ -35,7 +35,7 @@ extension CoachAPI: TargetType {
|
|
|
var baseURL: URL {
|
|
|
switch self {
|
|
|
case .coachInfo,.coachQrInfo,.coachInfoList,.coachTempList,.studentInfoById,
|
|
|
- .stuScoreByOutId,.stuTmsSignListByStuId,.stuTmsLogFacListByStuId,
|
|
|
+ .stuScoreByOutId,.stuTmsSignListByStuId,.stuTmsLogFaceListByStuId,
|
|
|
.allStudentInfoList:
|
|
|
return URL(string: HttpRequest.api.path)!
|
|
|
}
|
|
@@ -60,8 +60,8 @@ extension CoachAPI: TargetType {
|
|
|
return "/jsjp-admin/open-api/gzpt/userInfo/getUserScoreByOutId"
|
|
|
case .stuTmsSignListByStuId(_,_,_,_):
|
|
|
return "/jsjp-admin/open-api/tms/coachInfo/getTmsSignListByStuId"
|
|
|
- case .stuTmsLogFacListByStuId(_,_,_,_):
|
|
|
- return "/jsjp-admin/open-api/tms/coachInfo/getTmsLogFacListByStuId"
|
|
|
+ case .stuTmsLogFaceListByStuId(_,_,_,_):
|
|
|
+ return "/jsjp-admin/open-api/tms/coachInfo/getTmsLogFaceListByStuId"
|
|
|
|
|
|
}
|
|
|
|
|
@@ -70,7 +70,7 @@ extension CoachAPI: TargetType {
|
|
|
var method: Moya.Method {
|
|
|
switch self {
|
|
|
case .coachInfo,.coachQrInfo,.coachInfoList,.coachTempList,
|
|
|
- .studentInfoById,.stuScoreByOutId,.stuTmsLogFacListByStuId:
|
|
|
+ .studentInfoById,.stuScoreByOutId,.stuTmsLogFaceListByStuId:
|
|
|
return .get
|
|
|
default:
|
|
|
return .get
|
|
@@ -84,7 +84,7 @@ extension CoachAPI: TargetType {
|
|
|
var task: Moya.Task {
|
|
|
switch self {
|
|
|
case .coachInfo(_,_),.coachQrInfo(_,_),.coachInfoList(_,_,_,_,_,_,_,_),.coachTempList(_,_,_,_,_,_,_,_),.studentInfoById(_,_)
|
|
|
- ,.stuScoreByOutId(_,_,_),.stuTmsSignListByStuId(_,_,_,_),.stuTmsLogFacListByStuId(_,_,_,_),
|
|
|
+ ,.stuScoreByOutId(_,_,_),.stuTmsSignListByStuId(_,_,_,_),.stuTmsLogFaceListByStuId(_,_,_,_),
|
|
|
.allStudentInfoList(_, _, _, _, _, _):
|
|
|
if let parameters = parameters {
|
|
|
return .requestParameters(parameters: parameters, encoding: URLEncoding.default)
|
|
@@ -143,7 +143,7 @@ extension CoachAPI: TargetType {
|
|
|
"pageSize": pageSize,
|
|
|
"id": stuOutId,
|
|
|
"city":city,]
|
|
|
- case let .stuTmsLogFacListByStuId(pageNum, pageSize, stuOutId, city):
|
|
|
+ case let .stuTmsLogFaceListByStuId(pageNum, pageSize, stuOutId, city):
|
|
|
return ["pageNum": pageNum,
|
|
|
"pageSize": pageSize,
|
|
|
"id": stuOutId,
|