Documentation ¶
Index ¶
- type Attribute
- type AttributeGroup
- type AttributeGroups
- type AttributeList
- type CreateAttributeGroup
- type CreateAttributeReq
- type CustomAttributeFieldColumnsReq
- type DeleteAttributeReq
- type Handler
- func (h *Handler) CreateAttribute(ctx *gin.Context, req CreateAttributeReq) (ginx.Result, error)
- func (h *Handler) CreateAttributeGroup(ctx *gin.Context, req CreateAttributeGroup) (ginx.Result, error)
- func (h *Handler) CustomAttributeFieldColumns(ctx *gin.Context, req CustomAttributeFieldColumnsReq) (ginx.Result, error)
- func (h *Handler) DeleteAttribute(ctx *gin.Context, req DeleteAttributeReq) (ginx.Result, error)
- func (h *Handler) ListAttributeField(ctx *gin.Context, req ListAttributeReq) (ginx.Result, error)
- func (h *Handler) ListAttributeGroup(ctx *gin.Context, req ListAttributeGroupReq) (ginx.Result, error)
- func (h *Handler) ListAttributeGroupByIds(ctx *gin.Context, req ListAttributeGroupByIdsReq) (ginx.Result, error)
- func (h *Handler) ListAttributes(ctx *gin.Context, req ListAttributeReq) (ginx.Result, error)
- func (h *Handler) PrivateRoutes(server *gin.Engine)
- type ListAttributeGroupByIdsReq
- type ListAttributeGroupReq
- type ListAttributeReq
- type RetrieveAttributeFieldList
- type RetrieveAttributeFieldsList
- type RetrieveAttributeList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attribute ¶
type Attribute struct { ID int64 `json:"id"` ModelUid string `json:"model_uid"` FieldUid string `json:"field_uid"` FieldName string `json:"field_name"` FieldType string `json:"field_type"` Required bool `json:"required"` Secure bool `json:"secure"` Display bool `json:"display"` Option interface{} `json:"option"` Index int64 `json:"index"` }
type AttributeGroup ¶
type AttributeGroups ¶
type AttributeList ¶
type CreateAttributeGroup ¶
type CreateAttributeReq ¶
type CreateAttributeReq struct { GroupId int64 `json:"group_id"` FieldUid string `json:"field_uid"` ModelUid string `json:"model_uid"` FieldName string `json:"field_name"` FieldType string `json:"field_type"` Secure bool `json:"secure"` Required bool `json:"required"` Option interface{} `json:"option"` }
type CustomAttributeFieldColumnsReq ¶
type CustomAttributeFieldColumnsReq struct { ModelUid string `json:"model_uid"` CustomFieldName []string `json:"custom_field_name"` }
CustomAttributeFieldColumnsReq 排序并展示数据
type DeleteAttributeReq ¶
type DeleteAttributeReq struct {
Id int64 `json:"id"`
}
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) CreateAttribute ¶
func (*Handler) CreateAttributeGroup ¶
func (*Handler) CustomAttributeFieldColumns ¶
func (*Handler) DeleteAttribute ¶
func (*Handler) ListAttributeField ¶
func (*Handler) ListAttributeGroup ¶
func (*Handler) ListAttributeGroupByIds ¶
func (*Handler) ListAttributes ¶
func (*Handler) PrivateRoutes ¶ added in v1.3.0
type ListAttributeGroupByIdsReq ¶
type ListAttributeGroupByIdsReq struct {
Ids []int64 `json:"ids"`
}
type ListAttributeGroupReq ¶
type ListAttributeGroupReq struct {
ModelUid string `json:"model_uid"`
}
type ListAttributeReq ¶
type ListAttributeReq struct {
ModelUid string `json:"model_uid"`
}
type RetrieveAttributeFieldsList ¶
type RetrieveAttributeFieldsList struct { }
type RetrieveAttributeList ¶
type RetrieveAttributeList struct {
AttributeList []AttributeList `json:"attribute_groups"`
}
Click to show internal directories.
Click to hide internal directories.