first commit
This commit is contained in:
1
芳林公司项目/zyhelp/common/service/.pydio
Normal file
1
芳林公司项目/zyhelp/common/service/.pydio
Normal file
@@ -0,0 +1 @@
|
||||
16e1cbb8-6694-46d4-a11e-9c8defb5dece
|
||||
1
芳林公司项目/zyhelp/common/service/impl/.pydio
Normal file
1
芳林公司项目/zyhelp/common/service/impl/.pydio
Normal file
@@ -0,0 +1 @@
|
||||
131ca1da-c3e0-4c09-a495-91a38e295d48
|
||||
158
芳林公司项目/zyhelp/common/service/impl/indexService.js
Executable file
158
芳林公司项目/zyhelp/common/service/impl/indexService.js
Executable 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
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
35
芳林公司项目/zyhelp/common/service/impl/loginService.js
Executable file
35
芳林公司项目/zyhelp/common/service/impl/loginService.js
Executable 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
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
32
芳林公司项目/zyhelp/common/service/impl/startUpService.js
Executable file
32
芳林公司项目/zyhelp/common/service/impl/startUpService.js
Executable 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
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
130
芳林公司项目/zyhelp/common/service/impl/userService.js
Executable file
130
芳林公司项目/zyhelp/common/service/impl/userService.js
Executable 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
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
11
芳林公司项目/zyhelp/common/service/imports.js
Executable file
11
芳林公司项目/zyhelp/common/service/imports.js
Executable file
@@ -0,0 +1,11 @@
|
||||
import { indexService } from "./impl/indexService";
|
||||
import { loginService } from "./impl/loginService";
|
||||
import { startUpService } from "./impl/startUpService";
|
||||
import { userService } from "./impl/userService";
|
||||
|
||||
export class Imports {
|
||||
indexService = new indexService()
|
||||
loginService = new loginService()
|
||||
startUpService = new startUpService()
|
||||
userService = new userService()
|
||||
}
|
||||
Reference in New Issue
Block a user