diff --git a/README.md b/README.md index 1720bbf..5dff7be 100644 --- a/README.md +++ b/README.md @@ -105,7 +105,64 @@ ``` 后端修改对应的用户返回结果 +## 动物信息管理功能 +### 动物查询 + +打开界面直接显示数据、需要管理员权限 + +前端提供的数据,用户名 +```json +{ + "username": "user1" +} +``` +后端根据用户名查询用户是否有权限访问再返回数据 + +若成功,返回所有用户的结果集(节省时间不搞分页了) + +### 用户添加 + +需要管理员权限 + +前端提供的数据 + +```json +{ + "user":{ + "username": "user2", + "password": "123456", + "auth": "1", + "other": "更多需要提供的数据请写在接口文档里" + } +} +``` + +后端返回状态码,哪个码表示什么意思记得写一下 + +### 用户删除 + +前端提供的数据,用户名 +```json +{ + "username": "user1" +} +``` +后端删除对应的用户返回结果 + +### 用户编辑 +前端提供的数据,用户名 +```json +{ + "user":{ + "username": "user2", + "password": "123456", + "auth": "1", + "other": "更多需要提供的数据请写在接口文档里" + } +} +``` +后端修改对应的用户返回结果 # 开发进度 diff --git a/src/components/ZooAnimalFormDialog.vue b/src/components/ZooAnimalFormDialog.vue new file mode 100644 index 0000000..db7ee87 --- /dev/null +++ b/src/components/ZooAnimalFormDialog.vue @@ -0,0 +1,13 @@ + + + + + \ No newline at end of file diff --git a/src/components/ZooAside.vue b/src/components/ZooAside.vue index 577211d..3b583a9 100644 --- a/src/components/ZooAside.vue +++ b/src/components/ZooAside.vue @@ -22,14 +22,14 @@ export default {