Coder Social home page Coder Social logo

educationmusic's Introduction

目录

小程式登录

授权登录

  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}
{
  text: ${text}
}

获取所有知识天地列表

  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}
{
  salonId: ${salonId}
}

音乐作业

老师布置作业

  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}
{
  videoId: ${videoId}
}

学生收藏

单个沙龙收藏

  POST    http://localhost:?/music/student/shalong/collect?token=${token}
{
  salonId: ${salonId}
}

单个沙龙取消收藏

  POST    http://localhost:?/music/student/shalong/cancel?token=${token}
{
  salonId: ${salonId}
}

获取收藏沙龙

  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}
{
  salonId: ${salonId}
}

educationmusic's People

Contributors

cbinbin avatar

Watchers

James Cloos avatar Joephon avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.