fix: types field
CI / changes (push) Successful in 13s
CI / ad (push) Successful in 0s
CI / admin (push) Successful in 1s
CI / bff (push) Successful in 0s
CI / chore (push) Successful in 0s
CI / express (push) Successful in 1s
CI / product (push) Successful in 0s
CI / sale (push) Successful in 0s
CI / user (push) Successful in 0s
CI / wecom (push) Successful in 32s

This commit is contained in:
zzw
2026-08-31 14:29:43 +08:00
parent 1d41d7ca7e
commit b79d49d399
3 changed files with 4 additions and 6 deletions
+2 -3
View File
@@ -40,8 +40,7 @@ type UserListItem struct {
UpdatedAt string `json:"updated_at"`
}
// UserTypeOption 用户类型选项(前端下拉)
type UserTypeOption struct {
Value uint8 `json:"value"`
Label string `json:"label"`
ID uint8 `json:"id"`
Name string `json:"name"`
}
+2 -2
View File
@@ -33,8 +33,8 @@ func typeText(t uint8) string {
func userTypeOptions() []dao.UserTypeOption {
return []dao.UserTypeOption{
{Value: dao.UserTypeAdmin, Label: "管理员"},
{Value: dao.UserTypeSale, Label: "销售"},
{ID: dao.UserTypeAdmin, Name: "管理员"},
{ID: dao.UserTypeSale, Name: "销售"},
}
}
@@ -23,7 +23,6 @@ func NewTypesLogic(ctx context.Context, svcCtx *svc.ServiceContext) *TypesLogic
}
}
// Types 用户类型选项(管理员 / 销售)
func (l *TypesLogic) Types(_ *wecom.EmptyReq) (*wecom.Response, error) {
return okResponse(userTypeOptions()), nil
}