/design

毕业设计

Primary LanguageJava

这是毕业设计的源码。

spring

  • spring-web
  • spring-data
  • spring-session
  • mybatis

service

  • zookeeper
  • kafka

data source

  • redis
  • mysql

Architecture

REST API

hostname: localhost:3000

User Api

get api/user 获取所有用户

get api/user/{userId} 获取用户id为userId的用户

post api/user 添加用户

put api/user 更新用户

delete api/user 删除用户

Cooking Api

get api/cooking 获取所有菜谱

get api/cooking?offset=??&limit=?? 获取从offset开始的limit数量的菜谱

get api/cooking/{cookingId} 获取id为cookingId 的菜谱

get api/cooking/{cookingId}/show 获取id为cookingId 的菜谱的所有作品

get api/cooking/{cookingId}/show/{showId} 获取id为cookingId的菜谱的id为showId 的作品

post api/cooking/{cookingId}/show 向id 为cookingId 的菜谱添加作品

其他类似

auth api post auth 登录

delete auth 注销登录

register api post register 注册

upload file api

get file/{filename} 下载图片 post file 上传文件 post file?type=avatar 上传用户头像 post file?type=cooking 上传菜谱图片 post file?type=show 上传作品图片 ... ...

图片静态资源地址。 /static/img/avatar/{userId} 用户头像 /static/img/cooking/{id} 菜谱图片 ... ...