POST http://localhost:?/session?iv=${iv}&code=${code}&encryptedData=${encryptedData}&raw=${raw}
{
iv: ${iv}, //require
code: ${code}, //require
encryptedData: ${encryptedData}, //require
raw: ${raw}
}
GET http://localhost:?/music/user?token=${token}
POST http://localhost:?/music/uploadimg?token=${token}
// 上传头像 key: 'music/imgs'
POST http://localhost:?/music/teacher/new?token=${token}
{
lat: ${lat}, //纬度(Number)
lng: ${lng}, //经度(Number)
realName: ${realName}, //真实姓名(String)
gender: ${gender}, //性别(Number)
instrument: ${instrument}, //擅长乐器(String)
introduction: ${introduction}, //自我介绍(String)
labels: ${labels}, //标签(Array)
img: ${img}
}
POST http://localhost:?/music/student/new?token=${token}
{
realName: ${realName}, //真实姓名(String)
gender: ${gender}, //性别(Number)
age: ${age}, //年龄(Number)
labels: ${labels}, //标签(Array)
img: ${img}
}
GET http://localhost:?/music/signed?token=${token}
POST http://localhost:?/music/relieve?token=${token}
{
relieve: ${relieve} //身份(String)['teacher'教师, 'student'学生]
}
POST http://localhost:?/music/teacher/change?token=${token}
{
lat: ${lat}, //纬度(Number)
lng: ${lng}, //经度(Number)
realName: ${realName}, //真实姓名(String)
gender: ${gender}, //性别(Number)
introduction: ${introduction}, //自我介绍(String)
instrument: ${instrument}, //职业方向(String)
show: ${show}, //展示(Boolean)
labels: ${labels}, //标签(Array)
noticeNew: ${noticeNew}
// addlabel: ${addlabel}, //添加1个标签(String)
// rdulabel: ${rdulabel} //删减1个标签(String)
// 上传头像 key: 'music/imgs'
}
GET http://localhost:?/music/teacher/mystudent?token=${token}
POST http://localhost:?/music/teacher/change/rqcode?token=${token}
{
// 上传二维码图片 key: 'music/rqcodes',覆盖原有
}
GET http://localhost:?/music/teacher/change/rqcode/del?token=${token}
POST http://localhost:?/music/teacher/change/cert?token=${token}
{
rducertUrl: ${rducertUrl} //删减1个证书(String)
// 上传头像 key: 'music/certs'
}
POST http://localhost:?/music/teacher/change/style?token=${token}
{
rduvideoUrl: ${rduvideoUrl} //删减1个视频(String)
// 上传视频 key: 'music/videos'
}
GET http://localhost:?/music/teacher/piechart/integral?token=${token}
GET http://localhost:?/music/knowledge/own?token=${token}
GET http://localhost:?/music/knowledge/own/comment?token=${token}
POST http://localhost:?/music/student/change?token=${token}
{
realName: ${realName}, //真实姓名(String)
gender: ${gender}, //性别(Number)
img: ${img}, //头像url(String)
age: ${age}, //年龄(Number)
labels: ${labels}, //标签(Array)
noticeNew: ${noticeNew} //(Boolean)
// 上传头像 key: 'music/imgs'
}
GET http://localhost:?/music/student/myteacher?token=${token}
GET http://localhost:?/music/student/myteacher/recommend?token=${token}&lat=${lat}&lng=${lng}
{
lat: ${lat}, //纬度(Number)
lng: ${lng} //经度(Number)
}
POST http://localhost:?/music/student/myteacher/recommend/search?token=${token}
{
search: ${search} //搜索(String)
}
GET http://localhost:?/music/student/myteacher/one/detail?token=${token}&teacherid=${teacherid}
{
teacherid: ${teacherid} //获取老师列表时的objectId
}
POST http://localhost:?/music/trade/one?token=${token}
{
goodsId: ${goodsId} //物品ID
}
GET http://localhost:?/music/trade/vouchers?token=${token}
GET http://localhost:?/music/user/integral?token=${token}
GET http://localhost:?/music/user/integral/situation?token=${token}
GET http://localhost:?/music/goods/all?token=${token}&state=${state}&per=${per}&page=${page}
// state: 'sell' 获取全部在售
GET http://localhost:?/music/goods/one?goodsid=${goodsid}&token=${token}
POST http://localhost:?/music/knowledge/new?token=${token}
GET http://localhost:?/music/knowledge/whole?token=${token}
GET http://localhost:?/music/knowledge/single?kledgeid=${kledgeid}&token=${token}
POST http://localhost:?/music/knowledge/delone?token=${token}
{
kledgeId: ${kledgeId}
}
POST http://localhost:?/music/knowledge/comment?token=${token}
{
kledgeId: ${kledgeId}, //知识天地ID(String)
retext: ${retext}, //评论内容(String)
commentId: ${commentId} //评论ID(String) 此ID为评论中的objectId, 可选
}
POST http://localhost:?/music/knowledge/comment/delone?token=${token}
{
commentId: ${commentId}
}
POST http://localhost:?/music/salon/new?token=${token}
{
title: ${title}, //主题(String)
date: ${date}, //日期(String)
time: ${time}, //时间(String)
address: ${address}, //举办地点(String)
content: ${content}, //主要信息(String)
isFree: ${isFree}, //免费(Boolean)
isOpen: ${isOpen}, //公开(Boolean)
modle: ${modle}, //模版,可选(String)
phone: ${phone} //(Number)
}
GET http://localhost:?/music/salon/all?token=${token}
GET http://localhost:?/music/salon/one?salonid=${salonid}&token=${token}
GET http://localhost:?/music/salon/own?token=${token}
GET http://localhost:?/music/salon/modle?token=${token}
POST http://localhost:?/music/salon/del?token=${token}
POST http://localhost:?/music/teacher/assignment?token=${token}
{
name: ${name}, //(String)
gender: ${gender}, //(Number)
classtime: ${classtime}, //上课时间(String)
age: ${age}, //(Number)
keynote: ${keynote}, //作业及课堂重点(String)
rhythmSensation: ${rhythmSensation}, //节奏感(0~5)(Number)
readMusic: ${readMusic}, //识谱能力(0~5)(Number)
proficiency: ${proficiency}, //熟练度(0~5)(Number)
expressiveForce: ${expressiveForce} //表现力(0~5)(Number)
}
GET http://localhost:?/music/teacher/assignment/all?token=${token}
GET http://localhost:?/music/teacher/assignment/one?token=${token}&taskid=${taskid}
GET http://localhost:?/music/teacher/assignment/linechart?token=${token}
POST http://localhost:?/music/student/task/receive?token=${token}
{
taskId: ${taskId} //作业ID
}
POST http://localhost:?/music/student/task/schedules?token=${token}
{
taskId: ${taskId} //作业ID
schedules: ${schedules} //进度(Array)[0, 1, 0, 1, 0, 1, 0]
}
GET http://localhost:?/music/student/task/all?token=${token}
GET http://localhost:?/music/student/task/single?token=${token}&taskid=${taskid}
GET http://localhost:?/music/student/task/linechart?token=${token}
POST http://localhost:?/music/teacher/video/one?token=${token}
{
// 上传视频 key: 'music/studentVideos'
}
POST http://localhost:?/music/teacher/video/student?token=${token}
{
urlId: ${urlId}, //urlID(String)
title: ${title}, //视频标题(String)
tags: ${tags} //视频标签(Array)
}
GET http://localhost:?/music/teacher/video/all?token=${token}
GET http://localhost:?/music/teacher/video/single?token=${token}&videoid=${videoid}
POST http://localhost:?/music/teacher/video/delone?token=${token}
POST http://localhost:?/music/student/shalong/collect?token=${token}
POST http://localhost:?/music/student/shalong/cancel?token=${token}
GET http://localhost:?/music/student/shalong/mycollects?token=${token}
GET http://localhost:?/music/student/shalong/all?token=${token}
GET http://localhost:?/music/student/shalong/one/detail?token=${token}&salonid=${salonid}
POST http://localhost:?/login
{
adminName: ${adminName},
passWord: ${passWord}
}
POST http://localhost:?/admin/goods/create/images?token=${token}
// key: 'adminmusic/images'
GET http://localhost:?/admin/goods/create/images/empty?token=${token}
POST http://localhost:?/admin/goods/create?token=${token}
{
title: ${title}, //标题(String)
point: ${point}, //积分(Number)
text: ${text}, //商品详情(String)
defaultState: ${defaultState}, //默认上下架['true'上架,'false'下架](Boolean)
showContactway: ${showContactway}, //显示联系方式(Boolean)
contactway: ${contactway}, //联系方式(String)
category: ${category} //商品类型['goods'物品,'modle'模版]
}
GET http://localhost:?/admin/goods/list?token=${token}&state=${state}&per=${per}&page=${page}
// state: 'sell' 获取全部在售
GET http://localhost:?/admin/goods/list/one?goodsid=${goodsid}&token=${token}
POST http://localhost:?/admin/goods/change/one?token=${token}
{
goodsId: ${goodsId}, //(String)
title: ${title}, //(String)
point: ${point}, //(Number)
text: ${text}, //(String)
state: ${state}, //(Boolean)
showContactway: ${showContactway}, //显示联系方式(Boolean)
contactway: ${contactway}, //联系方式(String)
category: ${category}, //(String)
//delgoods: ${delgoods} //删除(Boolean),和 goodsId 一起
}
GET http://localhost:?/admin/knowledge/list?token=${token}
POST http://localhost:?/admin/knowledge/del?token=${token}
{
kledgeId: ${kledgeId}
}
POST http://localhost:?/admin/knowledge/comment/del?token=${token}
{
commentId: ${commentId}
}
POST http://localhost:?/admin/knowledge/top?token=${token}
{
kledgeId: ${kledgeId}
}
POST http://localhost:?/admin/knowledge/qxtop?token=${token}
{
kledgeId: ${kledgeId}
}
GET http://localhost:?/admin/trade/all?token=${token}
POST http://localhost:?/admin/trade/status?token=${token}
{
voucherId: ${voucherId}, //(ObjectId)
showContactway: ${showContactway} //(Boolean)
}
POST http://localhost:?/admin/trade/del?token=${token}
{
voucherId: ${voucherId}
}
POST http://localhost:?/admin/wx/change?token=${token}
{
name: ${name},
wxNumber: ${wxNumber}
}
GET http://localhost:?/admin/salon/all?token=${token}
POST http://localhost:?/admin/salon/del?token=${token}