transformCustomer

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Detail = map[string]param.Transfer{
	`Group`: param.Tf(`group`, nil),
	`Level`: param.Tf(`level`, func(value interface{}, row param.Store) interface{} {
		mp, ok := value.(param.Store)
		if !ok {
			return value
		}
		return param.Store{
			`id`:          mp.Get(`Id`),
			`short`:       mp.Get(`Short`),
			`name`:        mp.Get(`Name`),
			`description`: mp.Get(`Description`),
			`icon_image`:  mp.Get(`IconImage`),
			`icon_class`:  mp.Get(`IconClass`),
			`color`:       mp.Get(`Color`),
			`bgcolor`:     mp.Get(`Bgcolor`),
		}
	}),
	`Agent`: param.Tf(`agent`, func(value interface{}, row param.Store) interface{} {
		mp, ok := value.(param.Store)
		if !ok {
			return value
		}
		return param.Store{
			`id`:          mp.Get(`Id`),
			`name`:        mp.Get(`Name`),
			`description`: mp.Get(`Description`),
		}
	}),
	`Roles.Id`:          param.Tf(`roles.id`, nil),
	`Roles.Name`:        param.Tf(`roles.name`, nil),
	`Roles.Description`: param.Tf(`roles.description`, nil),
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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