4 Star 24 Fork 6

Lucson/vue_xm_jwxt

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
jwxt.postman_collection.json 39.51 KB
一键复制 编辑 原始数据 按行查看 历史
Lucson 提交于 2022-04-29 23:45 +08:00 . 修订API接口文档完毕
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835
{
"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",
"value": "[email protected]",
"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",
"value": "[email protected]",
"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&notify_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&notify_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": ""
}
]
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lucson/vue_xm_jwxt.git
[email protected]:lucson/vue_xm_jwxt.git
lucson
vue_xm_jwxt
vue_xm_jwxt
master

搜索帮助