修正了更多功能
This commit is contained in:
@@ -457,7 +457,7 @@ async function main() {
|
||||
|
||||
r = await req('POST', '/api/customers', {
|
||||
name: 'CRUD测试加盟商', phone: '13800007777', province: '河南', city: '郑州',
|
||||
customer_type: 'VIP', email: 'test@mixue.com',
|
||||
email: 'test@mixue.com',
|
||||
}, tokens.admin)
|
||||
check('admin POST /api/customers (创建)', r, 200)
|
||||
const custCrudId = r.body?.data?.id
|
||||
@@ -478,9 +478,6 @@ async function main() {
|
||||
|
||||
r = await req('GET', '/api/customers?name=CRUD', null, tokens.admin)
|
||||
check('GET /api/customers?name=CRUD (搜索)', r, 200)
|
||||
|
||||
r = await req('GET', '/api/customers?customer_type=VIP', null, tokens.admin)
|
||||
check('GET /api/customers?customer_type=VIP (筛选)', r, 200)
|
||||
}
|
||||
|
||||
r = await req('GET', '/api/customers/99999', null, tokens.admin)
|
||||
|
||||
Reference in New Issue
Block a user