e21_presents

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Overview

@snippet_begin(PresetHelloWorldSample)

Index

Constants

View Source
const NotificationCenterSamplePath = "/samples/notification_center"

@snippet_end

View Source
const PresetsBrandFuncPath = "/samples/brand_func"
View Source
const PresetsBrandTitlePath = "/samples/brand_title"
View Source
const PresetsDetailPageCardsPath = "/samples/presets-detail-page-cards"
View Source
const PresetsDetailPageDetailsPath = "/samples/presets-detail-page-details"
View Source
const PresetsDetailPageTopNotesPath = "/samples/presets-detail-page-top-notes"
View Source
const PresetsEditingCustomizationDescriptionPath = "/samples/presets-editing-customization-description"
View Source
const PresetsEditingCustomizationFileTypePath = "/samples/presets-editing-customization-file-type"
View Source
const PresetsEditingCustomizationTabsPath = "/samples/presets-editing-customization-tabs"
View Source
const PresetsEditingCustomizationValidationPath = "/samples/presets-editing-customization-validation"
View Source
const PresetsHelloWorldPath = "/samples/presets-hello-world"
View Source
const PresetsLinkageSelectFilterItemPath = "/samples/linkage_select_filter_item"
View Source
const PresetsListingCustomizationBulkActionsPath = "/samples/presets-listing-customization-bulk-actions"
View Source
const PresetsListingCustomizationFieldsPath = "/samples/presets-listing-customization-fields"
View Source
const PresetsListingCustomizationFiltersPath = "/samples/presets-listing-customization-filters"
View Source
const PresetsListingCustomizationSearcherPath = "/samples/presets-listing-customization-searcher"
View Source
const PresetsListingCustomizationTabsPath = "/samples/presets-listing-customization-tabs"
View Source
const PresetsMenuGroupPath = "/samples/menu_group"
View Source
const PresetsMenuOrderPath = "/samples/menu_order"
View Source
const PresetsModelBuilderExtensionsPath = "/samples/presets-model-builder-extensions"
View Source
const PresetsPermissionsPath = "/samples/presets-permissions"
View Source
const PresetsProfilePath = "/samples/profile"

Variables

View Source
var DB *gorm.DB
View Source
var Messages_en_US = &Messages{
	Admin:                   "Admin",
	Customers:               "Customers",
	Companies:               "Companies",
	CustomersName:           "Name",
	CustomersCompanyID:      "Company",
	CustomersDescription:    "Description",
	CompaniesName:           "Name",
	CustomersID:             "ID",
	CustomersCompany:        "Company",
	CustomersEmail:          "Email",
	Customer:                "Customer",
	CustomersFilterCreated:  "Created",
	CustomersFilterApproved: "Approved",
	CustomersFilterName:     "Name",
	CustomersFilterCompany:  "Company",
}
View Source
var Messages_zh_CN = &Messages{
	Admin:                   "管理系统",
	Customers:               "客户",
	Companies:               "公司",
	CustomersName:           "姓名",
	CustomersCompanyID:      "公司",
	CustomersDescription:    "描述",
	CompaniesName:           "公司名称",
	CustomersID:             "ID",
	CustomersCompany:        "公司",
	CustomersEmail:          "电子邮件",
	Customer:                "客户",
	CustomersFilterCreated:  "创建日",
	CustomersFilterApproved: "承认日",
	CustomersFilterName:     "名称",
	CustomersFilterCompany:  "属于公司",
}

Functions

func NotifierComponent

func NotifierComponent() func(ctx *web.EventContext) h.HTMLComponent

func NotifierCount

func NotifierCount() func(ctx *web.EventContext) int

func PresetsBrandFunc

func PresetsBrandFunc(b *presets.Builder)

func PresetsBrandTitle

func PresetsBrandTitle(b *presets.Builder)

func PresetsEditingCustomizationDescription

func PresetsEditingCustomizationDescription(b *presets.Builder) (
	cust *presets.ModelBuilder,
	cl *presets.ListingBuilder,
	ce *presets.EditingBuilder,
	db *gorm.DB,
)

func PresetsEditingCustomizationFileType

func PresetsEditingCustomizationFileType(b *presets.Builder) (
	cust *presets.ModelBuilder,
	cl *presets.ListingBuilder,
	ce *presets.EditingBuilder,
	db *gorm.DB,
)

func PresetsEditingCustomizationTabs

func PresetsEditingCustomizationTabs(b *presets.Builder)

func PresetsEditingCustomizationValidation

func PresetsEditingCustomizationValidation(b *presets.Builder) (
	cust *presets.ModelBuilder,
	cl *presets.ListingBuilder,
	ce *presets.EditingBuilder,
	db *gorm.DB,
)

func PresetsGroupMenu

func PresetsGroupMenu(b *presets.Builder)

func PresetsHelloWorld

func PresetsHelloWorld(b *presets.Builder) (m *presets.ModelBuilder, db *gorm.DB)

func PresetsLinkageSelectFilterItem

func PresetsLinkageSelectFilterItem(b *presets.Builder)

func PresetsListingCustomizationBulkActions

func PresetsListingCustomizationBulkActions(b *presets.Builder) (
	cust *presets.ModelBuilder,
	cl *presets.ListingBuilder,
	ce *presets.EditingBuilder,
	db *gorm.DB,
)

func PresetsListingCustomizationFields

func PresetsListingCustomizationFields(b *presets.Builder) (
	cust *presets.ModelBuilder,
	cl *presets.ListingBuilder,
	ce *presets.EditingBuilder,
	db *gorm.DB,
)

func PresetsListingCustomizationFilters

func PresetsListingCustomizationFilters(b *presets.Builder) (
	cust *presets.ModelBuilder,
	cl *presets.ListingBuilder,
	ce *presets.EditingBuilder,
	db *gorm.DB,
)

func PresetsListingCustomizationSearcher

func PresetsListingCustomizationSearcher(b *presets.Builder)

func PresetsListingCustomizationTabs

func PresetsListingCustomizationTabs(b *presets.Builder) (
	cust *presets.ModelBuilder,
	cl *presets.ListingBuilder,
	ce *presets.EditingBuilder,
	db *gorm.DB,
)

func PresetsModelBuilderExtensions

func PresetsModelBuilderExtensions(b *presets.Builder) (
	mb *presets.ModelBuilder,
	db *gorm.DB,
)

func PresetsNotificationCenterSample

func PresetsNotificationCenterSample(b *presets.Builder)

func PresetsOrderMenu

func PresetsOrderMenu(b *presets.Builder)

func PresetsProfile

func PresetsProfile(b *presets.Builder)

Types

type Address

type Address struct {
	ID       int
	Province string
	City     string
	District string
}

type Company

type Company struct {
	ID   int
	Name string
}

type CreditCard

type CreditCard struct {
	ID              int
	CustomerID      int
	Number          string
	ExpireYearMonth string
	Name            string
	Type            string
	Phone           string
	Email           string
}

type Customer

type Customer struct {
	ID              int
	Name            string
	Email           string
	Description     string
	CompanyID       int
	CreatedAt       time.Time
	UpdatedAt       time.Time
	ApprovedAt      *time.Time
	TermAgreedAt    *time.Time
	ApprovalComment string
}

type Group

type Group struct {
	ID   uint
	Name string
}

type Messages

type Messages struct {
	Admin                   string
	Customers               string
	Companies               string
	CustomersName           string
	CustomersCompanyID      string
	CustomersDescription    string
	CompaniesName           string
	CustomersID             string
	CustomersCompany        string
	CustomersEmail          string
	Customer                string
	CustomersFilterCreated  string
	CustomersFilterApproved string
	CustomersFilterName     string
	CustomersFilterCompany  string
}

type MyFile

type MyFile string

type Note

type Note struct {
	ID         int
	SourceType string
	SourceID   int
	Content    string
	CreatedAt  time.Time
	UpdatedAt  time.Time
}

type Product

type Product struct {
	ID        int
	Title     string
	MainImage MyFile
}

type User

type User struct {
	ID       uint
	Username string
}

@snippet_begin(PresetsPermissionsSample)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL