
### 测试登录
POST http://localhost:8000/admin/login HTTP/1.1
Content-Type: application/json

{
    "username":"admin",
    "password":"123456"
}


### 测试添加产品
POST http://localhost:8000/admin/product HTTP/1.1
Content-Type: application/json


{
    "name":"测试产品3",
    "cat_id":1,
    "size":"M",
    "price":100,
    "image":"12345",
    "content":"测试产品",
    "keywords":"测试产品",
    "sort":1
}

### 获取产品列表
GET http://localhost:8000/admin/product HTTP/1.1
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwidXNlcm5hbWUiOiJhZG1pbiIsImFjdGlvbl9saXN0IjoiQUxMIiwiaWF0IjoxNzY1NTA3MzE1LCJleHAiOjE3NjU1MTA5MTV9.ib3IeMAnLm2d_gpuzeY6oEB8LaIaT-SuNotBpCtsgi4

### 获取产品详情
GET http://localhost:8000/admin/product/4 HTTP/1.1

### 删除产品
delete http://localhost:8000/admin/product/1 HTTP/1.1


### 更新产品
PUT http://localhost:8000/admin/product HTTP/1.1
Content-Type: application/json

{
    "id": 3,
    "name":"测试产品3测试产品3",
    "cat_id":1,
    "size":"M",
    "price":100,
    "image":"12345",
    "content":"测试产品",
    "keywords":"测试产品",
    "sort":1
}
