Versions in this module Expand all Collapse all v1 v1.0.3 Dec 23, 2021 Changes in this version type PageButton + Enable bool v1.0.1 Dec 16, 2021 Changes in this version + func GetChildrenList(location map[string]interface{}, treeMap map[string][]map[string]interface{}) (err error) + func GetTreeMap(page *Page) (treeMap map[string][]map[string]interface{}, err error) + func SortButtons(buttons []*PageButton) + func SortFields(fields []*PageField) type Metadata + func (md *Metadata) FieldSort() + func (md *Metadata) InitGenCode() + func (md *Metadata) Sort() v1.0.0 Dec 16, 2021 Changes in this version + var NamingStrategy schema.NamingStrategy + func AutoMigrate() + func CamelName(name string) string + func CamelName2(name string) string + func ConvertGoType(f *MetadataField) string + func ConvertTSType(f *MetadataField) string + func Copy(pageName string, id string) error + func CopyMetadata(id string) error + func CopyPage(id string) error + func Create(pageName string, m map[string]interface{}) error + func CreateMetadata(md *Metadata) error + func CreatePage(m *Page) error + func Delete(pageName string, id string) (err error) + func DeleteMetadata(id string) (err error) + func DeletePage(id string) (err error) + func Enable(pageName string, id string, enable bool) error + func EnablePage(id string, enable bool) error + func GetAll(pageName string) (list []map[string]interface{}, err error) + func GetDetailById(pageName string, id string) (data map[string]interface{}, err error) + func GetDetailByName(pageName, name string) (map[string]interface{}, error) + func GetTree(pageName string) (list []map[string]interface{}, total int64, err error) + func Init(connStr string, debug bool) + func LcFirst(s string) string + func LowerSnakeCase(s string) string + func MetadataFieldsToPB(in []MetadataField) []*apipb.MetadataField + func MetadataToPB(in *Metadata) *apipb.MetadataInfo + func MetadatasToPB(in []*Metadata) []*apipb.MetadataInfo + func PBToPageButtons(btns []*PageButton) []*apipb.PageButton + func PageFieldsToPB(in []*PageField) []*apipb.PageField + func PageToPB(in *Page) *apipb.PageInfo + func PageToolBarToPB(in *PageToolBar) *apipb.PageToolBar + func PagesToPB(in []*Page) []*apipb.PageInfo + func Query(req *QueryRequest, resp *QueryResponse) + func QueryMetadata(req *apipb.QueryMetadataRequest, resp *apipb.QueryMetadataResponse) + func QueryPage(req *apipb.QueryPageRequest, resp *apipb.QueryPageResponse) + func RecursiveRefMetadata(md *Metadata, preload *[]string) + func RemoveLastChar(s string) string + func Update(pageName string, m map[string]interface{}) error + func UpdateMetadata(md *Metadata) error + func UpdatePage(m *Page) error + type Metadata struct + Children []*Metadata + Description string + DisplayName string + Fields string + Level int32 + MetadataFields []MetadataField + Name string + Package string + ParentID string + Preload string + System string + UniqueFields string + func GetAllMetadatas() (mds []*Metadata, err error) + func GetMetadataById(id string) (*Metadata, error) + func GetMetadataByName(name string) (*Metadata, error) + func GetMetadataTree() (list []*Metadata, total int64, err error) + func PBToMetadata(in *apipb.MetadataInfo) *Metadata + type MetadataField struct + Comment string + Component string + Copier bool + DefaultValue string + DisplayName string + Index bool + IsArray bool + Length int32 + Like bool + MetadataID string + Name string + NotNull bool + Order int32 + RefMetadata string + ShowInEdit bool + ShowInQuery bool + ShowInTable bool + Type string + Unique bool + func GetMetadataFieldByMDId(mdID string) ([]*MetadataField, error) + func PBToMetadataFields(in []*apipb.MetadataField) []MetadataField + type Page struct + AddFormID string + Buttons []*PageButton + CardAvatarField string + CardContentField string + CardDescriptionField string + CardImageField string + CardLoadType int32 + CardTitleField string + Description string + EditFormID string + Editable string + Enable bool + Fields []*PageField + ListAvatarField string + ListContentField string + ListDescriptionField string + ListLoadType int32 + ListTitleField string + LoadDetailAfter string + LoadDetailBefore string + Metadata *Metadata + MetadataID string + Name string + PageSize uint32 + Path string + QueryAfter string + QueryBefore string + SearchDefaultValue string + SearchFormID string + ShowIndex bool + ShowSelection bool + SubmitAfter string + SubmitBefore string + Title string + ToolBar *PageToolBar + Type int32 + ViewFormID string + func GetAllPage() (list []*Page, err error) + func GetPageByID(id string) (*Page, error) + func GetPageByName(name string) (*Page, error) + func PBToPage(in *apipb.PageInfo) *Page + type PageButton struct + Expanded bool + Href string + HrefFunc string + ID string + Index int32 + Key string + Label string + PageID string + Script string + ShowType string + func PageButtonsToPB(versions []*apipb.PageButton) []*PageButton + type PageField struct + Component string + ComponentProps string + Copyable bool + DataType string + Ellipsis bool + LabelField string + Name string + PageID string + RowKey bool + ShowInTable bool + Sort int32 + Title string + ValueEnum string + ValueField string + func PBToPageFields(in []*apipb.PageField) []*PageField + type PageToolBar struct + AddScript string + FullScreen bool + PageID string + Reload bool + Render string + Setting bool + ShowAdd bool + func PBToPageToolBar(in *apipb.PageToolBar) *PageToolBar + type QueryMetadataRequest struct + Name string + ParentID string + type QueryMetadataResponse struct + Data []*Metadata + type QueryRequest struct + Data map[string]interface{} + PageName string + type QueryResponse struct + Data []map[string]interface{}