21级的知识图谱仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

267 lines
7.8 KiB

3 months ago
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { BaseResponse_List_TeacherInfVO_ } from '../models/BaseResponse_List_TeacherInfVO_';
import type { CommonResult } from '../models/CommonResult';
import type { CommonResult_string_ } from '../models/CommonResult_string_';
import type { CommonResult_UmsAdmin_ } from '../models/CommonResult_UmsAdmin_';
import type { UmsAdmin } from '../models/UmsAdmin';
import type { UmsAdminParam } from '../models/UmsAdminParam';
import type { UmsStudentAndTeacherDTO } from '../models/UmsStudentAndTeacherDTO';
import type { UpdateAdminPasswordParam } from '../models/UpdateAdminPasswordParam';
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';
export class UmsAdminControllerService {
/**
*
* @param phone phone
* @returns CommonResult_string_ OK
* @returns any Created
* @throws ApiError
*/
public static sendVerifyCodeUsingPost1(
phone: string,
): CancelablePromise<CommonResult_string_ | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/api/user/code',
query: {
'phone': phone,
},
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
* username和name
* @returns BaseResponse_List_TeacherInfVO_ OK
* @throws ApiError
*/
public static getTeacherInfListUsingGet1(): CancelablePromise<BaseResponse_List_TeacherInfVO_> {
return __request(OpenAPI, {
method: 'GET',
url: '/api/user/get_teacherinf_list',
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
*
* @param name
* @returns CommonResult OK
* @throws ApiError
*/
public static getAdminInfoUsingGet1(
name?: string,
): CancelablePromise<CommonResult> {
return __request(OpenAPI, {
method: 'GET',
url: '/api/user/info',
query: {
'name': name,
},
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
* token
* @param umsAdmin umsAdmin
* @returns CommonResult OK
* @returns any Created
* @throws ApiError
*/
public static loginUsingPost1(
umsAdmin: UmsAdmin,
): CancelablePromise<CommonResult | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/api/user/login',
body: umsAdmin,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
*
* @param id id
* @returns CommonResult OK
* @returns any Created
* @throws ApiError
*/
public static getByIdPersonalInfoUsingPost1(
id: string,
): CancelablePromise<CommonResult | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/api/user/personal/info',
query: {
'id': id,
},
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
* token
* @param phone phone
* @returns CommonResult OK
* @returns any Created
* @throws ApiError
*/
public static phoneLoginUsingPost1(
phone: string,
): CancelablePromise<CommonResult | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/api/user/phone/login',
query: {
'phone': phone,
},
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
*
* @param umsAdminParam umsAdminParam
* @returns CommonResult_UmsAdmin_ OK
* @returns any Created
* @throws ApiError
*/
public static phoneRegisterUsingPost1(
umsAdminParam: UmsAdminParam,
): CancelablePromise<CommonResult_UmsAdmin_ | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/api/user/phone/register',
body: umsAdminParam,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
* token
* @returns CommonResult OK
* @throws ApiError
*/
public static refreshTokenUsingGet1(): CancelablePromise<CommonResult> {
return __request(OpenAPI, {
method: 'GET',
url: '/api/user/refreshToken',
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
*
* @param umsAdminParam umsAdminParam
* @returns CommonResult_UmsAdmin_ OK
* @returns any Created
* @throws ApiError
*/
public static registerUsingPost1(
umsAdminParam: UmsAdminParam,
): CancelablePromise<CommonResult_UmsAdmin_ | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/api/user/register',
body: umsAdminParam,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
*
* @param umsadmin umsadmin
* @returns CommonResult OK
* @returns any Created
* @throws ApiError
*/
public static updateUmsUsingPost1(
umsadmin: UmsAdmin,
): CancelablePromise<CommonResult | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/api/user/update',
body: umsadmin,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
*
* @param umsStudentAndTeacherDto umsStudentAndTeacherDTO
* @returns CommonResult OK
* @returns any Created
* @throws ApiError
*/
public static updatePersonalInfoUsingPost1(
umsStudentAndTeacherDto: UmsStudentAndTeacherDTO,
): CancelablePromise<CommonResult | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/api/user/update/PersonalInfo',
body: umsStudentAndTeacherDto,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
/**
*
* @param updatePasswordParam updatePasswordParam
* @returns CommonResult OK
* @returns any Created
* @throws ApiError
*/
public static updatePasswordUsingPost1(
updatePasswordParam: UpdateAdminPasswordParam,
): CancelablePromise<CommonResult | any> {
return __request(OpenAPI, {
method: 'POST',
url: '/api/user/updatePassword',
body: updatePasswordParam,
errors: {
401: `Unauthorized`,
403: `Forbidden`,
404: `Not Found`,
},
});
}
}