Salon美甲师注册申请关联微信账号
自动发布开发环境 Nacos 配置 / publish (push) Successful in 26s

This commit is contained in:
2026-10-30 03:46:24 +08:00
parent 5a787a93f3
commit 7b40ee1650
27 changed files with 733 additions and 91 deletions
+14 -2
View File
@@ -28,7 +28,13 @@ async function run() {
await authApi.logout()
await employeesApi.reviewSummary()
await employeesApi.reviewApplications()
await employeesApi.approveApplication(12)
await employeesApi.unboundArtists(12)
await employeesApi.preAssociateApplication(14, 22)
await employeesApi.approveApplication(12, {
targetArtistUserId: 22,
useApplicantNickname: true,
useApplicantAvatar: false
})
await employeesApi.rejectApplication(12, '资料不完整')
assert.deepStrictEqual(requests.map(item => [item.method || 'GET', item.url, item.data]), [
@@ -39,7 +45,13 @@ async function run() {
['POST', 'http://127.0.0.1:80/api/user/logout', undefined],
['GET', 'http://127.0.0.1:80/api/user/workbench/registration/summary', undefined],
['GET', 'http://127.0.0.1:80/api/user/workbench/registration/list', undefined],
['POST', 'http://127.0.0.1:80/api/user/workbench/registration/12/approve', undefined],
['GET', 'http://127.0.0.1:80/api/user/workbench/registration/12/unbound-artists', undefined],
['POST', 'http://127.0.0.1:80/api/user/workbench/registration/14/pre-associate', { targetArtistUserId: 22 }],
['POST', 'http://127.0.0.1:80/api/user/workbench/registration/12/approve', {
targetArtistUserId: 22,
useApplicantNickname: true,
useApplicantAvatar: false
}],
['POST', 'http://127.0.0.1:80/api/user/workbench/registration/12/reject', { reason: '资料不完整' }]
])
assert(requests.every(item => !item.url.includes('/api/admin/')))