first commit

This commit is contained in:
编码猿
2024-09-27 01:32:49 +08:00
commit 28ebe05a64
7399 changed files with 1174529 additions and 0 deletions

View File

@@ -0,0 +1 @@
131ca1da-c3e0-4c09-a495-91a38e295d48

View File

@@ -0,0 +1,158 @@
import { Http } from "../../http/http.js";
import { config } from "../../config/config.js";
export class indexService extends Http {
constructor() {
super()
}
async getCityList(params) {
return await this.get({
url: config.apiList.getArea,
data: params
});
}
async getSchoolType(params) {
return await this.get({
url: config.apiList.getSchoolType,
data: params
});
}
async getSchools(params) {
return await this.post({
url: config.apiList.getSchools,
data: params
});
}
async checkAuth(params) {
return await this.post({
url: config.apiList.checkAuth,
data: params
});
}
async getProvinceBatch(params) {
return await this.get({
url: config.apiList.getProvinceBatch,
data: params
});
}
async defaultMajor(params) {
return await this.post({
url: config.apiList.defaultMajor,
data: params
});
}
async getPullDown(params) {
return await this.get({
url: config.apiList.getPullDown,
data: params
});
}
async getMajorAbout(params) {
return await this.post({
url: config.apiList.getMajorAbout,
data: params
});
}
async majorSchool(params) {
return await this.post({
url: config.apiList.majorSchool,
data: params
});
}
async addUserCollectMajor(params) {
return await this.post({
url: config.apiList.addUserCollectMajor,
data: params
});
}
async getSchMajor(params) {
return await this.post({
url: config.apiList.getSchMajor,
data: params
});
}
async getSchEnroll(params) {
return await this.post({
url: config.apiList.getSchEnroll,
data: params
});
}
async getSchCount(params) {
return await this.post({
url: config.apiList.getSchCount,
data: params
});
}
async getMajorSch(params) {
return await this.post({
url: config.apiList.getMajorSch,
data: params
});
}
async getNewMajor(params) {
return await this.post({
url: config.apiList.getNewMajor,
data: params
});
}
async getNewMajorCount(params) {
return await this.post({
url: config.apiList.getNewMajorCount,
data: params
});
}
async getNewSchCount(params) {
return await this.post({
url: config.apiList.getNewSchCount,
data: params
});
}
async addUserNewMajor(params) {
return await this.post({
url: config.apiList.addUserNewMajor,
data: params
});
}
async addUserNewSch(params) {
return await this.post({
url: config.apiList.addUserNewSch,
data: params
});
}
async getNewSchMajor(params) {
return await this.post({
url: config.apiList.getNewSchMajor,
data: params
});
}
async newMajorSch(params) {
return await this.post({
url: config.apiList.newMajorSch,
data: params
});
}
}

View File

@@ -0,0 +1,35 @@
import { Http } from "../../http/http.js";
import { config } from "../../config/config.js";
export class loginService extends Http {
constructor() {
super()
}
/**
* 用户登录接口
* @param params
* @returns {Promise<unknown>}
*/
async appLogin(params) {
return await this.post({
url: config.apiList.appLogin,
data: params
});
}
/**
* 发送短息验证码
* @param params
* @returns {Promise<unknown>}
*/
async sendCode(params) {
return await this.post({
url: config.apiList.sendCode,
data: params
});
}
}

View File

@@ -0,0 +1,32 @@
import { Http } from "../../http/http.js";
import { config } from "../../config/config.js";
export class startUpService extends Http {
constructor() {
super()
}
async provinceSubject(params) {
return await this.get({
url: config.apiList.provinceSubject,
data: params
});
}
async proScoreRank(params) {
return await this.get({
url: config.apiList.proScoreRank,
data: params
});
}
async modifyUser(params) {
return await this.post({
url: config.apiList.modifyUser,
data: params
});
}
}

View File

@@ -0,0 +1,130 @@
import { Http } from "../../http/http.js";
import { config } from "../../config/config.js";
export class userService extends Http {
constructor() {
super()
}
async createOrder(params) {
return await this.post({
url: config.apiList.createOrder,
data: params
});
}
async payOrder(params) {
return await this.post({
url: config.apiList.payOrder,
data: params
});
}
async checkPay(params) {
return await this.post({
url: config.apiList.checkPay,
data: params
});
}
async myOrders(params) {
return await this.post({
url: config.apiList.myOrders,
data: params
});
}
async getMesType(params) {
return await this.get({
url: config.apiList.getMesType,
data: params
});
}
async addMessage(params) {
return await this.post({
url: config.apiList.addMessage,
data: params
});
}
async addUserCollectSch(params) {
return await this.post({
url: config.apiList.addUserCollectSch,
data: params
});
}
async myCollectSch(params) {
return await this.post({
url: config.apiList.myCollectSch,
data: params
});
}
async delUserCollect(params) {
return await this.post({
url: config.apiList.delUserCollect,
data: params
});
}
async myCollectMajor(params) {
return await this.post({
url: config.apiList.myCollectMajor,
data: params
});
}
async delUserMajor(params) {
return await this.post({
url: config.apiList.delUserMajor,
data: params
});
}
async getUserMes(params) {
return await this.post({
url: config.apiList.getUserMes,
data: params
});
}
async myNewSch(params) {
return await this.post({
url: config.apiList.myNewSch,
data: params
});
}
async myNewMajor(params) {
return await this.post({
url: config.apiList.myNewMajor,
data: params
});
}
async delNewSch(params) {
return await this.post({
url: config.apiList.delNewSch,
data: params
});
}
async delNewMajor(params) {
return await this.post({
url: config.apiList.delNewMajor,
data: params
});
}
async getScoreGrade(params) {
return await this.post({
url: config.apiList.getScoreGrade,
data: params
});
}
}