Versions in this module Expand all Collapse all v1 v1.1.0 May 13, 2022 Changes in this version + func GetRole(c *gin.Context) []string + func NewAppCenterClient(c *config.Config) *appCenterClient + func NewAppCenterMockClient(c *config.Config) *appCenterClient + type AlterADDResp struct + TableName string + type AppCenterAPI interface + CheckIsAdmin func(ctx context.Context, appID, userID string, isSuper bool) (*CheckAppAdminResp, error) + func NewAppCenterAPI(conf *config.Config) AppCenterAPI + func NewAppCenterMock() AppCenterAPI + type AppCenterMock struct + func (a AppCenterMock) CheckIsAdmin(ctx context.Context, appID, userID string, isSuper bool) (*CheckAppAdminResp, error) + type CheckAppAdminResp struct + IsAdmin bool + type CreateTableResp struct + TableName string + type DeleteNamespaceResp struct + type DeleteResp struct + SuccessCount int64 + type Field struct + Max int64 + Title string + Type string + type FindOptions struct + Page int64 + Size int64 + Sort []string + type FormAPI struct + func NewFormAPI(config *config.Config) (*FormAPI, error) + func (f *FormAPI) Delete(ctx context.Context, formReq *FormReq) (*DeleteResp, error) + func (f *FormAPI) Get(ctx context.Context, formReq *FormReq) (*GetResp, error) + func (f *FormAPI) Insert(ctx context.Context, formReq *FormReq) (*InsertResp, error) + func (f *FormAPI) Search(ctx context.Context, formReq *FormReq) (*SearchResp, error) + func (f *FormAPI) Update(ctx context.Context, formReq *FormReq) (*UpdateResp, error) + type FormDDLAPI struct + func NewFormDDLAPI(config *config.Config) (*FormDDLAPI, error) + func (f *FormDDLAPI) AlterADD(ctx context.Context, tableName string, field []*Field) (*AlterADDResp, error) + func (f *FormDDLAPI) CreateTable(ctx context.Context, tableName string, field []*Field) (*CreateTableResp, error) + func (f *FormDDLAPI) Index(ctx context.Context, tableID, fieldName, indexName string) (*IndexResp, error) + type FormReq struct + DslQuery interface{} + Entity interface{} + TableID string + type GetResp struct + Entity map[string]interface{} + type IndexResp struct + IndexName string + type InsertResp struct + SuccessCount int64 + type PolyAPI interface + DeleteNamespace func(ctx context.Context, appID, tableID string) (*DeleteNamespaceResp, error) + RegSwagger func(ctx context.Context, host, swag, appID, tableID, tableName string) (*RegSwaggerResp, error) + func NewPolyAPI(conf *config.Config) PolyAPI + type RegSwaggerResp struct + type SearchResp struct + Entities []map[string]interface{} + Total int64 + type StructorReq struct + Dsl *anypb.Any + Entity *anypb.Any + TableID string + type UpdateResp struct + SuccessCount int64