feat(M08-B): 补保洁员资料细节
This commit is contained in:
+2
-1
@@ -462,11 +462,12 @@ async function handleCreateCleaner(
|
||||
}
|
||||
|
||||
async function handleUpdateCleaner(
|
||||
input: { userId: string; nickname: string; storeIds: string[]; note?: string }
|
||||
input: { userId: string; nickname: string; phone?: string; storeIds: string[]; note?: string }
|
||||
) {
|
||||
await runAction(async () => {
|
||||
await updateStaffUser(session.value, input.userId, {
|
||||
nickname: input.nickname,
|
||||
phone: input.phone,
|
||||
roles: ['CLEANER'],
|
||||
storeIds: input.storeIds,
|
||||
note: input.note
|
||||
|
||||
Reference in New Issue
Block a user