configuration

package
v1.2.17 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FieldScope = "Scope"
	FieldGroup = "Group"
	FieldValue = "Value"
)

Variables

View Source
var (
	ColumnScope = domain.ColumnName(FieldScope)
	ColumnGroup = domain.ColumnName(FieldGroup)
	ColumnValue = domain.ColumnName(FieldValue)
)

Functions

func Bind added in v0.11.20

func Bind(app *application.App, simple *Simple)

Types

type AddConfigurationJsonBody

type AddConfigurationJsonBody struct {
	Scope string `json:"scope" binding:"required" assign:"toField:Scope"`
	Group string `json:"group" binding:"required" assign:"toField:Group"`
	Value string `json:"value" binding:"required" assign:"toField:Value"`
}

type GetConfigurationValuesQueryParams

type GetConfigurationValuesQueryParams struct {
	Scope string `form:"scope" assign:"toField:Scope"`
	Group string `form:"group" assign:"toField:Group"`
}

type RemoveConfigurationJsonBody

type RemoveConfigurationJsonBody struct {
	Scope string `json:"scope" binding:"required" assign:"toField:Scope"`
	Group string `json:"group" binding:"required" assign:"toField:Group"`
}

type Simple

type Simple struct {
	// schema
	Schema string
}

Simple Bind参数

type ValueObject added in v0.5.2

type ValueObject struct {
	value_object.Base
	Scope string `sqlmapping:"column:scope;key;notUpdate;" sqlresult:"column:scope;" check:"required,lte=256,when=create/delete"`
	Group string `sqlmapping:"column:group;key;notUpdate;" sqlresult:"column:group;" check:"required,lte=256,when=create/delete"`
	Value string `sqlmapping:"column:value;notUpdate;" sqlresult:"column:value;" check:"required,lte=256,when=create"`
}

func (*ValueObject) DomainCNName added in v0.5.2

func (valueObject *ValueObject) DomainCNName() string

func (*ValueObject) DomainCamelName added in v0.5.2

func (valueObject *ValueObject) DomainCamelName() string

func (*ValueObject) GetFieldMap added in v1.1.0

func (valueObject *ValueObject) GetFieldMap() map[string]string

Jump to

Keyboard shortcuts

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