Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnumVal ¶
type EnumVal struct {
ID string `bson:"id" json:"id"`
Name string `bson:"name" json:"name"`
Type string `bson:"type" json:"type"`
IsDefault bool `bson:"is_default" json:"is_default"`
}
func ParseEnumOption ¶
func ParseEnumOption(val interface{}) []EnumVal
ParseEnumOption convert val to []EnumVal
type InstRst ¶
type InstRst struct {
Result bool `json:"result"`
Code int `json:"code"`
Message interface{} `json:"message"`
Data interface{} `json:"data"`
}
InstRst define
type ValRule ¶
type ValRule struct {
IsRequireArr []string
IsOnlyArr []string
AllFiledArr []string
NoEnumFiledArr []string
PropertyKv map[string]string
FieldRule map[string]map[string]interface{}
AllFieldAttDes []api.ObjAttDes
// contains filtered or unexported fields
}
func NewValRule ¶
func (*ValRule) GetObjAttrByID ¶
func (valid *ValRule) GetObjAttrByID(forward *api.ForwardParam, objID string) error
type ValidMap ¶
type ValidMap struct {
IsRequireArr []string
IsOnlyArr []string
KeyFileds map[string]interface{}
PropertyKv map[string]string
// contains filtered or unexported fields
}
func NewValidMap ¶
func NewValidMap(ownerID, objID, objCtrl string, forward *api.ForwardParam, err errors.DefaultCCErrorIf) *ValidMap
NewValidMap returns new NewValidMap
func NewValidMapWithKeyFields ¶
func NewValidMapWithKeyFields(ownerID, objID, objCtrl string, keyFileds []string, forward *api.ForwardParam, err errors.DefaultCCErrorIf) *ValidMap
NewValidMapWithKeyFields returns new NewValidMap
Click to show internal directories.
Click to hide internal directories.