table

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonTable

type CommonTable struct {
	State      State                                            `json:"state"`
	Type       string                                           `json:"type"`
	Operations map[apistructs.OperationKey]apistructs.Operation `json:"operations"`
	Props      Props                                            `json:"props"`
	Data       Data                                             `json:"data"`
}

type Data

type Data struct {
	List []NotifyTableList `json:"list"`
}

type FormData

type FormData struct {
	Id       int64    `json:"id"`
	Name     string   `json:"name"`
	Items    []string `json:"items"`
	Target   string   `json:"target"`
	Channels []string `json:"channels"`
}

type Meta

type Meta struct {
	Id int64 `json:"id"`
}

type NotifyTableList

type NotifyTableList struct {
	Id        int64   `json:"id"`
	Name      string  `json:"name"`
	Targets   Target  `json:"targets"`
	CreatedAt string  `json:"createdAt"`
	Operate   Operate `json:"operate"`
	Enable    bool    `json:"enable"`
}

type Operate

type Operate struct {
	RenderType string                `json:"renderType"`
	Value      string                `json:"value"`
	Operations map[string]Operations `json:"operations"`
}

type Operations

type Operations struct {
	Key     string `json:"key"`
	Text    string `json:"text"`
	Reload  bool   `json:"reload"`
	Confirm string `json:"confirm"`
	Meta    Meta   `json:"meta"`
}

type PropColumn

type PropColumn struct {
	Title     string `json:"title"`
	DataIndex string `json:"dataIndex"`
	Width     uint64 `json:"width"`
}

type Props

type Props struct {
	RowKey     string       `json:"rowKey"`
	Columns    []PropColumn `json:"columns"`
	Pagination bool         `json:"pagination"`
}

type State

type State struct {
	EditId    uint64 `json:"editId"`
	Operation string `json:"operation"`
	Visible   bool   `json:"visible"`
}

type Target

type Target struct {
	Value      []apistructs.Value `json:"value"`
	RoleMap    map[string]string  `json:"roleMap"`
	RenderType string             `json:"renderType"`
}

Jump to

Keyboard shortcuts

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