代码拉取完成,页面将自动刷新
{
"info": {
"_postman_id": "f681301d-d83b-46a8-b784-676fa2129503",
"name": "jwxt",
"description": "教务系统后台API测试集合",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "控制台模块",
"item": [
{
"name": "学生总数接口",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [
{
"key": "token",
"value": "{{token}}",
"type": "text"
},
{
"key": "",
"value": "",
"type": "text",
"disabled": true
}
],
"body": {
"mode": "formdata",
"formdata": []
},
"url": {
"raw": "http://localhost:3000/api/student/count",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"student",
"count"
]
},
"description": "获取到学生的总数量"
},
"response": []
},
{
"name": "学院总数接口",
"request": {
"method": "GET",
"header": [
{
"key": "token",
"value": "",
"type": "text"
}
],
"url": {
"raw": "{{baseurl}}/department/count",
"host": [
"{{baseurl}}"
],
"path": [
"department",
"count"
]
},
"description": "控制台获取部门总数"
},
"response": []
},
{
"name": "总收益接口",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/order/total_price",
"host": [
"{{baseurl}}"
],
"path": [
"order",
"total_price"
]
},
"description": "获取所有订单的交易额度"
},
"response": []
},
{
"name": "明星学生接口",
"request": {
"method": "GET",
"header": [
{
"key": "token",
"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJuYW1lIjoiTHVjc29uIiwicHdkIjoiMTIzNDU2IiwibG9naW5UeXBlIjo0LCJleHBpcmUiOjE2NTEwNDQyMzAwNzAsImlkIjoiNjI1NDU2Zjk1MzA1MDAwMGJjMDA0ZDIzIn0.4472edb1ac4ecc113ca66c821d628e2d94ca573e3a996178d41025d415ef6951",
"type": "text"
},
{
"key": "",
"value": "",
"type": "text",
"disabled": true
}
],
"url": {
"raw": "http://localhost:3000/api/student/get_excellent_student",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"student",
"get_excellent_student"
]
},
"description": "明星学生接口 获取总成绩最高的排名"
},
"response": []
},
{
"name": "最新活动接口",
"request": {
"method": "GET",
"header": [
{
"key": "token",
"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJuYW1lIjoiTHVjc29uIiwicHdkIjoiMTIzNDU2IiwibG9naW5UeXBlIjo0LCJleHBpcmUiOjE2NTEwNDQyMzAwNzAsImlkIjoiNjI1NDU2Zjk1MzA1MDAwMGJjMDA0ZDIzIn0.4472edb1ac4ecc113ca66c821d628e2d94ca573e3a996178d41025d415ef6951",
"type": "text"
}
],
"url": {
"raw": "{{baseurl}}/actively/get_news_actively",
"host": [
"{{baseurl}}"
],
"path": [
"actively",
"get_news_actively"
]
},
"description": "获取到最新添加的活动"
},
"response": []
},
{
"name": "交易额查询接口",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/order/cycle_trade_price?cycleType=nowDay",
"host": [
"{{baseurl}}"
],
"path": [
"order",
"cycle_trade_price"
],
"query": [
{
"key": "cycleType",
"value": "nowDay",
"description": "必填参数 取值:nowDay(今天) lastWeek(上周) lastMonth(上个月)"
}
]
},
"description": "交易额查询 支持 今天 上个星期 上个月"
},
"response": []
},
{
"name": "新增学生接口",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/student/new_add_student?cycleType=nowDay",
"host": [
"{{baseurl}}"
],
"path": [
"student",
"new_add_student"
],
"query": [
{
"key": "cycleType",
"value": "nowDay",
"description": "必填参数 取值:nowDay(今天) lastWeek(上周) lastMonth(上个月)"
}
]
},
"description": "查询新增的学生 支持今天 上个星期 上个月"
},
"response": []
}
]
},
{
"name": "登录模块",
"item": [
{
"name": "登录接口",
"request": {
"method": "POST",
"header": [
{
"key": "token",
"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdHVkZW50Tm8iOiI1NjQ2IiwibG9naW5UeXBlIjoiMSIsInN0dWRlbnROYW1lIjoiTHVjc29uIiwiZXhwaXJlIjoxNjQ5Nzc3NjI4OTc0fQ.632a0ffb60059df0541d1bf0b7f7aa43ef3451ed3d2d2333e25a23f3a61e4d08",
"type": "text",
"disabled": true
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"name\":\"Lucson\",\r\n \"pwd\":\"123456\",\r\n \"loginType\":4\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:3000/api/login",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"login"
]
},
"description": "登录接口 登陆成功返回 JWT TOKEN 字符串 和 用户信息"
},
"response": []
},
{
"name": "认证接口",
"request": {
"method": "POST",
"header": [
{
"key": "token",
"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdHVkZW50Tm8iOiIxIiwibG9naW5UeXBlIjoiMSIsInN0dWRlbnROYW1lIjoiTHVjc29uIExpIiwiZXhwaXJlIjoxNjQ5ODMyMzU0NTc2LCJpZCI6IjYyNTQ1ZmRhNTMwNTAwMDBiYzAwNGQyNCJ9.e31f25f0352a2312236647853b716d9fde8ed458307fa102200ebace0a0396a7",
"description": "登录态 用来验证用户的合法性 里面保存了一些简单的用户信息",
"type": "text"
}
],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "loginType",
"value": "1",
"description": "登录类型,取值为 1 - 4 用来判断不同而登录方式",
"type": "text"
},
{
"key": "id",
"value": "62552a7376000000ba0006e4",
"description": "登录的用户ID 用来修改用户的登录状态",
"type": "text"
}
]
},
"url": {
"raw": "http://localhost:3000/api/auth",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"auth"
]
},
"description": "用于页面访问判断登录态是否失效\r\n用于访问需要登录权限的接口"
},
"response": []
},
{
"name": "登出接口",
"request": {
"method": "GET",
"header": [
{
"key": "token",
"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdHVkZW50Tm8iOiIxIiwibG9naW5UeXBlIjoiMSIsInN0dWRlbnROYW1lIjoiTHVjc29uIExpIiwiZXhwaXJlIjoxNjQ5ODMyMzU0NTc2LCJpZCI6IjYyNTQ1ZmRhNTMwNTAwMDBiYzAwNGQyNCJ9.e31f25f0352a2312236647853b716d9fde8ed458307fa102200ebace0a0396a7",
"description": "登录态 用来验证用户的合法性 里面保存了一些简单的用户信息",
"type": "text"
}
],
"url": {
"raw": "http://localhost:3000/api/logout?id=625456f953050000bc004d23&loginType=1",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"logout"
],
"query": [
{
"key": "id",
"value": "625456f953050000bc004d23",
"description": "登录的用户ID"
},
{
"key": "loginType",
"value": "1",
"description": "登录的类型"
}
]
},
"description": "用户退出请求此接口\r\n需要传递对应的登录的用户的ID和登录的类型"
},
"response": []
}
]
},
{
"name": "学生模块",
"item": [
{
"name": "获取学生名单接口",
"request": {
"method": "GET",
"header": [
{
"key": "token",
"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJuYW1lIjoiTHVjc29uIiwicHdkIjoiMTIzNDU2IiwibG9naW5UeXBlIjo0LCJleHBpcmUiOjE2NTEwNDQyMzAwNzAsImlkIjoiNjI1NDU2Zjk1MzA1MDAwMGJjMDA0ZDIzIn0.4472edb1ac4ecc113ca66c821d628e2d94ca573e3a996178d41025d415ef6951",
"type": "text"
}
],
"url": {
"raw": "http://localhost:3000/api/student/get_student_infos",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"student",
"get_student_infos"
],
"query": [
{
"key": "searchType",
"value": "1",
"description": "搜索类型(可不填) 可选值 1 || 2 1(代表使用学号查询) 2(代表使用姓名查询)",
"disabled": true
},
{
"key": "searchContent",
"value": "1",
"description": "搜索内容",
"disabled": true
},
{
"key": "pageIndex",
"value": "1",
"description": "页码",
"disabled": true
},
{
"key": "pageSize",
"value": "6",
"description": "页大小",
"disabled": true
}
]
},
"description": "获取学生名单接口"
},
"response": []
},
{
"name": "删除学生接口",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "http://localhost:3000/api/student/delete_student?id=62545fda53050000bc004d24",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"student",
"delete_student"
],
"query": [
{
"key": "id",
"value": "62545fda53050000bc004d24",
"description": "学生的ID"
}
]
},
"description": "删除一个学生"
},
"response": []
},
{
"name": "获取单个学生信息接口",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [
{
"key": "token",
"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJuYW1lIjoiTHVjc29uIiwicHdkIjoiMTIzNDU2IiwibG9naW5UeXBlIjo0LCJleHBpcmUiOjE2NTEwNDQyMzAwNzAsImlkIjoiNjI1NDU2Zjk1MzA1MDAwMGJjMDA0ZDIzIn0.4472edb1ac4ecc113ca66c821d628e2d94ca573e3a996178d41025d415ef6951",
"type": "text"
}
],
"body": {
"mode": "urlencoded",
"urlencoded": []
},
"url": {
"raw": "http://localhost:3000/api/student/get_student?id=62552a7376000000ba0006e4",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"student",
"get_student"
],
"query": [
{
"key": "id",
"value": "62552a7376000000ba0006e4",
"description": "学生ID"
}
]
},
"description": "获取单个学生信息"
},
"response": []
},
{
"name": "添加学生接口",
"request": {
"method": "POST",
"header": [
{
"key": "token",
"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJuYW1lIjoiTHVjc29uIiwicHdkIjoiMTIzNDU2IiwibG9naW5UeXBlIjo0LCJleHBpcmUiOjE2NTEwNDQyMzAwNzAsImlkIjoiNjI1NDU2Zjk1MzA1MDAwMGJjMDA0ZDIzIn0.4472edb1ac4ecc113ca66c821d628e2d94ca573e3a996178d41025d415ef6951",
"type": "text"
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "studentNo",
"value": "123456",
"description": "学号",
"type": "text"
},
{
"key": "studentAvatar",
"description": "学生头像",
"type": "file",
"src": []
},
{
"key": "studentPhone",
"value": "15236148260",
"description": "学生手机号",
"type": "text"
},
{
"key": "studentName",
"value": "Lucson",
"description": "学生姓名",
"type": "text"
},
{
"key": "studentEmail",
"type": "text"
},
{
"key": "studentSex",
"value": "1",
"type": "text"
},
{
"key": "studentBirthday",
"value": "2312312356456",
"type": "text"
},
{
"key": "studentInSchoolDate",
"value": "1650958352853",
"type": "text"
},
{
"key": "studentDepartment",
"value": "1",
"type": "text"
},
{
"key": "studentParentPhone",
"value": "15236148260",
"type": "text"
},
{
"key": "studentSkill",
"value": "\"html\",\"css\"",
"type": "text"
},
{
"key": "studentSubjectsIds",
"value": "1,2,3,4",
"type": "text"
},
{
"key": "studentGradeId",
"value": "1",
"type": "text"
}
]
},
"url": {
"raw": "http://localhost:3000/api/student/add_student",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"student",
"add_student"
]
},
"description": "添加学生"
},
"response": []
},
{
"name": "修改学生接口",
"request": {
"method": "PUT",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "_id",
"value": "62552a7376000000ba0006e4",
"description": "学生ID",
"type": "text"
},
{
"key": "studentNo",
"value": "3",
"type": "text",
"disabled": true
},
{
"key": "studentAvatar",
"type": "file",
"src": "/C:/Users/Administrator/Desktop/1.jpeg"
}
]
},
"url": {
"raw": "http://localhost:3000/api/student/update_student",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"student",
"update_student"
],
"query": [
{
"key": "_id",
"value": "62545fda53050000bc004d24",
"disabled": true
}
]
},
"description": "根据ID修改学生相关信息"
},
"response": []
},
{
"name": "根据学号模糊搜索学生接口",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/student/student?studentNo=666",
"host": [
"{{baseurl}}"
],
"path": [
"student",
"student"
],
"query": [
{
"key": "studentNo",
"value": "666"
}
]
}
},
"response": []
}
]
},
{
"name": "老师模块",
"item": [
{
"name": "老师列表接口",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:3000/api/teacher/get_teacher_infos?searchType=1&searchContent=t&pageIndex=1&pageSize=6",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"teacher",
"get_teacher_infos"
],
"query": [
{
"key": "searchType",
"value": "1",
"description": "取值为 1 || 2 1 代表使用工号 2 代表使用名字 未做其他选项的容错处理"
},
{
"key": "searchContent",
"value": "t"
},
{
"key": "pageIndex",
"value": "1"
},
{
"key": "pageSize",
"value": "6"
}
]
},
"description": "查询老师列表接口 和 学生模块的学生列表一样"
},
"response": []
},
{
"name": "老师视图接口",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:3000/api/teacher/get_teacher?id=6254652253050000bc004d25",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"teacher",
"get_teacher"
],
"query": [
{
"key": "id",
"value": "6254652253050000bc004d25"
}
]
},
"description": "老师的个人相关信息"
},
"response": []
},
{
"name": "老师添加接口",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "teacherNo",
"value": "666",
"type": "text"
},
{
"key": "teacherAvatar",
"type": "file",
"src": "/C:/Users/Administrator/Desktop/1.png"
},
{
"key": "teacherPhone",
"value": "15236148260",
"type": "text"
},
{
"key": "teacherName",
"value": "asd",
"type": "text"
},
{
"key": "teacherEmail",
"type": "text"
},
{
"key": "teacherSex",
"value": "1",
"type": "text"
},
{
"key": "teacherBirthday",
"value": "123231",
"type": "text"
},
{
"key": "teacherInSchoolDate",
"value": "12313132",
"type": "text"
},
{
"key": "teacherDepartment",
"value": "1",
"type": "text"
},
{
"key": "teacherSkill",
"value": "1,2",
"type": "text"
},
{
"key": "teacherSubjectIds",
"value": "1",
"type": "text"
},
{
"key": "gradeIds",
"value": "1",
"type": "text"
},
{
"key": "teacherSalary",
"value": "12500",
"type": "text"
},
{
"key": "teacherExperience",
"value": "1",
"type": "text"
}
]
},
"url": {
"raw": "http://localhost:3000/api/teacher/add_teacher",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"teacher",
"add_teacher"
]
}
},
"response": []
},
{
"name": "老师编辑接口",
"request": {
"method": "PUT",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "_id",
"value": "6254652253050000bc004d25",
"type": "text"
},
{
"key": "teacherAvatar",
"type": "file",
"src": "/C:/Users/Administrator/Desktop/1.png"
}
]
},
"url": {
"raw": "http://localhost:3000/api/teacher/update_teacher",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"teacher",
"update_teacher"
]
}
},
"response": []
},
{
"name": "删除老师接口",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "http://localhost:3000/api/teacher/delete_teacher?id=625d144a641fe5ac89440f2e",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"teacher",
"delete_teacher"
],
"query": [
{
"key": "id",
"value": "625d144a641fe5ac89440f2e"
}
]
},
"description": "删除老师"
},
"response": []
},
{
"name": "获取老师总数接口",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": ""
}
},
"response": []
}
]
},
{
"name": "学院模块",
"item": [
{
"name": "学院列表接口",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:3000/api/department/get_departments?searchContent=算",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"department",
"get_departments"
],
"query": [
{
"key": "searchContent",
"value": "算",
"description": "可选 如果传递了则代表需要搜索功能"
},
{
"key": "pageIndex",
"value": "1",
"disabled": true
},
{
"key": "pageSize",
"value": "6",
"disabled": true
},
{
"key": "",
"value": null,
"disabled": true
}
]
},
"description": "查询学院列表"
},
"response": []
},
{
"name": "学院添加接口",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "departmentNo",
"value": "666",
"type": "text"
},
{
"key": "departmentName",
"value": "计算机学院",
"type": "text"
},
{
"key": "departmentLeader",
"value": "1",
"type": "text"
},
{
"key": "departmentCreateDate",
"value": "2314654656798898",
"type": "text"
},
{
"key": "studentNumber",
"value": "2000",
"type": "text"
}
]
},
"url": {
"raw": "http://localhost:3000/api/department/add_department",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"department",
"add_department"
]
}
},
"response": []
},
{
"name": "学院编辑接口",
"request": {
"method": "PUT",
"header": [],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "_id",
"value": "625f6f36e7fa08d07d6da01c",
"type": "text"
},
{
"key": "departmentName",
"value": "技术学院666",
"type": "text"
}
]
},
"url": {
"raw": "http://localhost:3000/api/department/update_department",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"department",
"update_department"
]
}
},
"response": []
},
{
"name": "学院删除接口",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "http://localhost:3000/api/department/delete_department?id=62552afb76000000ba0006e6",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"department",
"delete_department"
],
"query": [
{
"key": "id",
"value": "62552afb76000000ba0006e6"
}
]
}
},
"response": []
},
{
"name": "获取院长接口",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:3000/api/dean/get_deans",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"dean",
"get_deans"
]
},
"description": "获取到所有院长"
},
"response": []
},
{
"name": "获取单个学院信息接口",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:3000/api/department/get_department?id=62552b0476000000ba0006e7",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"department",
"get_department"
],
"query": [
{
"key": "id",
"value": "62552b0476000000ba0006e7"
}
]
}
},
"response": []
}
]
},
{
"name": "科目模块",
"item": [
{
"name": "科目列表接口",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:3000/api/subject/get_teacher_infos",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"subject",
"get_teacher_infos"
],
"query": [
{
"key": "searchType",
"value": "1",
"disabled": true
},
{
"key": "searchContent",
"value": "1",
"disabled": true
}
]
}
},
"response": []
},
{
"name": "科目添加接口",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "subjectNo",
"value": "1",
"type": "text"
},
{
"key": "subjectName",
"value": "123",
"type": "text"
},
{
"key": "gradeIds",
"value": "1,2",
"type": "text"
},
{
"key": "departmentIds",
"value": "1,2",
"type": "text"
}
]
},
"url": {
"raw": "http://localhost:3000/api/subject/add_subject?subjectNo=11&subjectName=666",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"subject",
"add_subject"
],
"query": [
{
"key": "subjectNo",
"value": "11"
},
{
"key": "subjectName",
"value": "666"
}
]
}
},
"response": []
},
{
"name": "科目编辑接口",
"request": {
"method": "PUT",
"header": [],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "_id",
"value": "62552c8676000000ba0006ed",
"type": "text"
},
{
"key": "subjectName",
"value": "999asdasd",
"type": "text"
}
]
},
"url": {
"raw": "http://localhost:3000/api/subject/update_subject",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"subject",
"update_subject"
]
}
},
"response": []
},
{
"name": "科目删除接口",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "http://localhost:3000/api/subject/delete_subject?id=62552c7d76000000ba0006ec",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"subject",
"delete_subject"
],
"query": [
{
"key": "id",
"value": "62552c7d76000000ba0006ec"
}
]
}
},
"response": []
},
{
"name": "获取科目总数接口",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:3000/api/subject/get_subject_count",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"subject",
"get_subject_count"
]
}
},
"response": []
},
{
"name": "获取单个科目接口",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:3000/api/subject/get_subject?id=626a5be91d1b0000d80000e4",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"subject",
"get_subject"
],
"query": [
{
"key": "id",
"value": "626a5be91d1b0000d80000e4"
}
]
}
},
"response": []
}
]
},
{
"name": "账户模块",
"item": [
{
"name": "订单列表接口",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:3000/api/order/get_orders",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"order",
"get_orders"
],
"query": [
{
"key": "searchContent",
"value": "3",
"disabled": true
},
{
"key": "pageIndex",
"value": "1",
"disabled": true
},
{
"key": "pageSize",
"value": "6",
"disabled": true
}
]
}
},
"response": []
},
{
"name": "订单删除接口",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "http://localhost:3000/api/order/delete_order?id=6254682153050000bc004d28",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"order",
"delete_order"
],
"query": [
{
"key": "id",
"value": "6254682153050000bc004d28"
}
]
}
},
"response": []
},
{
"name": "创建订单接口",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "orderNo",
"value": "",
"description": "订单编号",
"type": "text"
},
{
"key": "toId",
"value": "",
"description": "收款人ID",
"type": "text"
},
{
"key": "toName",
"value": "",
"description": "收款人姓名",
"type": "text"
},
{
"key": "fromId",
"value": "",
"description": "付款人ID",
"type": "text"
},
{
"key": "fromName",
"value": "",
"description": "付款人姓名",
"type": "text"
},
{
"key": "tradeType",
"value": "",
"description": "交易类型, 用数字代替 具体可以自己传递的时候设置 这里没有创建相应的集合",
"type": "text"
},
{
"key": "tradeMoney",
"value": "",
"description": "交易金额",
"type": "text"
},
{
"key": "tradeDesc",
"value": "",
"description": "交易备注描述",
"type": "text"
}
]
},
"url": {
"raw": "http://localhost:3000/api/order/add_order",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"order",
"add_order"
]
}
},
"response": []
},
{
"name": "交易支付接口",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:3000/api/pay?orderNo=1&return_url=http://192.168.0.105:3000/api/pay/return_url¬ify_url=http://192.168.0.105:3000/api/pay/notify_url",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"pay"
],
"query": [
{
"key": "orderNo",
"value": "1"
},
{
"key": "return_url",
"value": "http://192.168.0.105:3000/api/pay/return_url",
"description": "同步通知地址 在这里的值无需改动"
},
{
"key": "notify_url",
"value": "http://192.168.0.105:3000/api/pay/notify_url",
"description": "异步通知地址 这里的值无需改动 这个参数实际我们没用到 传递过去就可以了 因为我们自己写的支付功能不对外提供使用 所以这个是无所谓的"
}
]
}
},
"response": []
},
{
"name": "订单查询接口",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:3000/api/order/get_order?orderNo=10000000000666",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"order",
"get_order"
],
"query": [
{
"key": "orderNo",
"value": "10000000000666"
}
]
}
},
"response": []
},
{
"name": "交易处理接口",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:3000/api/pay/pay_handler?role=teacher&orderNo=1&return_url=http://192.168.0.105:3000/api/pay/return_url¬ify_url=http://192.168.0.105:3000/api/pay/notify_url&fromId=6254652253050000bc004d25&toId=62552a7376000000ba0006e4",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"pay",
"pay_handler"
],
"query": [
{
"key": "role",
"value": "teacher"
},
{
"key": "orderNo",
"value": "1"
},
{
"key": "return_url",
"value": "http://192.168.0.105:3000/api/pay/return_url"
},
{
"key": "notify_url",
"value": "http://192.168.0.105:3000/api/pay/notify_url"
},
{
"key": "fromId",
"value": "6254652253050000bc004d25"
},
{
"key": "toId",
"value": "62552a7376000000ba0006e4"
}
]
}
},
"response": []
},
{
"name": "获取订单总数",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseurl}}/order/order_count",
"host": [
"{{baseurl}}"
],
"path": [
"order",
"order_count"
]
}
},
"response": []
}
]
},
{
"name": "活动模块",
"item": [
{
"name": "添加活动接口",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "activelyNo",
"value": "003",
"type": "text"
},
{
"key": "activelyTitle",
"value": "测试活动",
"type": "text"
},
{
"key": "activelyDate",
"value": "1650782460000",
"type": "text"
}
]
},
"url": {
"raw": "http://localhost:3000/api/actively/add_actively",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"actively",
"add_actively"
]
}
},
"response": []
},
{
"name": "删除活动接口",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "http://localhost:3000/api/actively/delete_actively?_id=6264f0d0567676eda9edb920",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"actively",
"delete_actively"
],
"query": [
{
"key": "_id",
"value": "6264f0d0567676eda9edb920"
}
]
}
},
"response": []
},
{
"name": "查询所有活动接口",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:3000/api/actively/get_activelys",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"actively",
"get_activelys"
]
}
},
"response": []
}
]
},
{
"name": "邮箱模块",
"item": [
{
"name": "当前用户邮件列表接口",
"request": {
"method": "GET",
"header": [
{
"key": "token",
"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJuYW1lIjoiTHVjc29uIiwicHdkIjoiMTIzNDU2IiwibG9naW5UeXBlIjo0LCJleHBpcmUiOjE2NTEwNDQyMzAwNzAsImlkIjoiNjI1NDU2Zjk1MzA1MDAwMGJjMDA0ZDIzIn0.4472edb1ac4ecc113ca66c821d628e2d94ca573e3a996178d41025d415ef6951",
"type": "text"
}
],
"url": {
"raw": "http://localhost:3000/api/postman/get_postmans?_id=62552a7376000000ba0006e4",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"postman",
"get_postmans"
],
"query": [
{
"key": "_id",
"value": "62552a7376000000ba0006e4",
"description": "登录用户的ID"
}
]
}
},
"response": []
},
{
"name": "发送邮件接口",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "postmanNo",
"value": "",
"type": "text"
},
{
"key": "postmanTitle",
"value": "",
"type": "text"
},
{
"key": "postmanContent",
"value": "",
"type": "text"
},
{
"key": "postmanDate",
"value": "",
"type": "text"
},
{
"key": "toId",
"value": "",
"type": "text"
},
{
"key": "toName",
"value": "",
"type": "text"
},
{
"key": "from",
"value": "",
"type": "text"
},
{
"key": "fromId",
"value": "",
"type": "text"
}
]
},
"url": {
"raw": "http://localhost:3000/api/postman/add_postman",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"postman",
"add_postman"
]
}
},
"response": []
},
{
"name": "邮件修改已读接口",
"request": {
"method": "PUT",
"header": [],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "_id",
"value": "6254695153050000bc004d2c",
"type": "text"
}
]
},
"url": {
"raw": "http://localhost:3000/api/postman/update_postman_status",
"protocol": "http",
"host": [
"localhost"
],
"port": "3000",
"path": [
"api",
"postman",
"update_postman_status"
]
}
},
"response": []
}
]
}
],
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
}
],
"variable": [
{
"key": "token",
"value": ""
}
]
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。