This commit is contained in:
2026-09-02 10:04:21 +08:00
parent 4f3b83f16d
commit e5e412682c
10 changed files with 41 additions and 22 deletions
@@ -78,6 +78,8 @@ test('starts empty and only loads server role and member records', () => {
assert.match(storeSource, /await resetMerchantMemberPassword/)
assert.match(source, /username: string/)
assert.match(source, /lastLoginAt: string \| null/)
assert.match(source, /phone: string \| null/)
assert.match(storeSource, /phone: payload\.phone\.trim\(\) \|\| null/)
assert.match(source, /memberCount: number/)
assert.match(storeSource, /account: member\.username/)
assert.match(storeSource, /lastLoginAt: formatLastLoginAt\(member\.lastLoginAt\)/)
@@ -129,8 +129,8 @@ export interface CreateMerchantMemberRequest {
username: string
password: string
displayName: string
phone: string
email: string
phone: string | null
email: string | null
memberType: 'EMPLOYEE'
memberNo: string
roleIds: Array<number | string>
@@ -138,8 +138,8 @@ export interface CreateMerchantMemberRequest {
export interface UpdateMerchantMemberRequest {
displayName: string
phone: string
email: string
phone: string | null
email: string | null
memberType: string
memberNo: string
roleIds: Array<number | string>