fix: wecom types agent
CI / changes (push) Successful in 12s
CI / ad (push) Successful in 0s
CI / admin (push) Successful in 0s
CI / bff (push) Successful in 3s
CI / chore (push) Successful in 0s
CI / express (push) Successful in 0s
CI / product (push) Successful in 1s
CI / sale (push) Successful in 0s
CI / user (push) Successful in 0s
CI / wecom (push) Successful in 31s

This commit is contained in:
zzw
2026-08-31 14:22:46 +08:00
parent 90a195c9ca
commit 1d41d7ca7e
15 changed files with 349 additions and 48 deletions
+7
View File
@@ -31,6 +31,13 @@ func typeText(t uint8) string {
}
}
func userTypeOptions() []dao.UserTypeOption {
return []dao.UserTypeOption{
{Value: dao.UserTypeAdmin, Label: "管理员"},
{Value: dao.UserTypeSale, Label: "销售"},
}
}
func resolveStatus(reqStatus uint32, current uint8) uint8 {
if reqStatus == uint32(dao.StatusEnabled) || reqStatus == uint32(dao.StatusDisabled) {
return uint8(reqStatus)