admin

package
v0.0.0-...-8be382e Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 License: MIT Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ActionBar admin action bar

View Source
var AssetManager *admin.Resource

AssetManager asset manager

View Source
var OrderExchange = exchange.NewResource(&orders.Order{}, exchange.Config{PrimaryField: "order_no"})

OrderExchange order exchange

View Source
var ProductExchange = exchange.NewResource(&products.Product{}, exchange.Config{PrimaryField: "Code"})

ProductExchange product exchange

View Source
var Widgets *widget.Widgets

Functions

func ReportsDataHandler

func ReportsDataHandler(context *admin.Context)

func ReportsHandler

func ReportsHandler(context *admin.Context)

func SetupDashboard

func SetupDashboard(Admin *admin.Admin)

SetupDashboard setup dashboard

func SetupNotification

func SetupNotification(Admin *admin.Admin)

SetupNotification add notification

func SetupSEO

func SetupSEO(Admin *admin.Admin)

SetupSEO add seo

func SetupWidget

func SetupWidget(Admin *admin.Admin)

SetupWidget setup widget

func SetupWorker

func SetupWorker(Admin *admin.Admin)

SetupWorker setup worker

Types

type App

type App struct {
	Config *Config
}

App home app

func New

func New(config *Config) *App

New new home app

func (App) ConfigureApplication

func (app App) ConfigureApplication(application *application.Application)

ConfigureApplication configure application

type Chart

type Chart struct {
	Total string
	Date  string
}

func GetChartDataByDay

func GetChartDataByDay(table, start, end string) (res []Chart)

date format 2015-01-23

func GetChartDataByMonth

func GetChartDataByMonth(table, start, end string) (res []Chart)

type Charts

type Charts struct {
	Orders []Chart
	Users  []Chart
}

type Config

type Config struct {
	Prefix string
}

Config home config struct

type QorWidgetSetting

type QorWidgetSetting struct {
	widget.QorWidgetSetting
	// publish2.Version
	// publish2.Schedule
	// publish2.Visible
	l10n.Locale
}

type TodayAfterSalesCount

type TodayAfterSalesCount struct {
	// 待预约
	ToReserve string

	// 待指派
	ToSchedule string

	// 已超时
	Overdue string

	// 已指派
	Scheduled string

	// 审核不通过的
	FailedToAudit string

	// 已审核
	Audited string

	//已冻结
	Frozen string

	// 待上门
	ToProcess string

	// 已处理 待提交服务完成证明
	Processed string

	// 待审核
	ToAudit string
}

type TodayOrdersCount

type TodayOrdersCount struct {
	// 待取件
	ToPickUpToday     string
	ToPickUpTomorrow  string
	ToPickUpTomorrow2 string

	// 待妥投
	ToDeliverToday     string
	ToDeliverTomorrow  string
	ToDeliverTomorrow2 string

	// 待妥投
	ToDeliver string

	// 待报单
	ToDeclareToday     string
	ToDeclareTomorrow  string
	ToDeclareTomorrow2 string

	// 约单
	ReservedToday      string
	ReservedYesterday  string
	ReservedYesterday2 string

	YesterdayToDeliver             string
	TheDayBeforeYesterdayToDeliver string
	Reserved                       string
}

Jump to

Keyboard shortcuts

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