configuration

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ColumnScope = "scope"
	ColumnGroup = "group"
	ColumnValue = "value"
)

Variables

This section is empty.

Functions

func BindConfiguration

func BindConfiguration(binder *binding.Binder, simple *Simple, opts ...Option)

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 Entity

type Entity struct {
	value_object.Base
	Scope string `sqlmapping:"column:scope;key;notUpdate;" sqlresult:"column:group;"`
	Group string `sqlmapping:"column:group;key;notUpdate;" sqlresult:"column:group;"`
	Value string `sqlmapping:"column:value;notUpdate;" sqlresult:"column:value;"`
}

func (*Entity) CheckKeyFields

func (e *Entity) CheckKeyFields() error

func (*Entity) DomainCNName

func (e *Entity) DomainCNName() string

func (*Entity) DomainCamelName

func (e *Entity) DomainCamelName() string

func (*Entity) ForCreate

func (e *Entity) ForCreate() error

type GetConfigurationValuesQueryParams

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

type Option

type Option func(options *Options)

func WithDisableCreate

func WithDisableCreate() Option

func WithDisableDelete

func WithDisableDelete() Option

func WithDisableQuery

func WithDisableQuery() Option

type Options

type Options struct {
	// contains filtered or unexported fields
}

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
	// contains filtered or unexported fields
}

Simple Bind参数

Jump to

Keyboard shortcuts

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