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
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:
@@ -40,8 +40,7 @@ type UserListItem struct {
|
|||||||
UpdatedAt string `json:"updated_at"`
|
UpdatedAt string `json:"updated_at"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// UserTypeOption 用户类型选项(前端下拉)
|
|
||||||
type UserTypeOption struct {
|
type UserTypeOption struct {
|
||||||
Value uint8 `json:"value"`
|
ID uint8 `json:"id"`
|
||||||
Label string `json:"label"`
|
Name string `json:"name"`
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,8 +33,8 @@ func typeText(t uint8) string {
|
|||||||
|
|
||||||
func userTypeOptions() []dao.UserTypeOption {
|
func userTypeOptions() []dao.UserTypeOption {
|
||||||
return []dao.UserTypeOption{
|
return []dao.UserTypeOption{
|
||||||
{Value: dao.UserTypeAdmin, Label: "管理员"},
|
{ID: dao.UserTypeAdmin, Name: "管理员"},
|
||||||
{Value: dao.UserTypeSale, Label: "销售"},
|
{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) {
|
func (l *TypesLogic) Types(_ *wecom.EmptyReq) (*wecom.Response, error) {
|
||||||
return okResponse(userTypeOptions()), nil
|
return okResponse(userTypeOptions()), nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user