base

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: May 26, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Filter_Cond_name = map[int32]string{
		0:  "None",
		1:  "Eq",
		2:  "Neq",
		3:  "Gt",
		4:  "Gte",
		5:  "Lt",
		6:  "Lte",
		7:  "Like",
		8:  "In",
		9:  "NotIn",
		10: "IsNull",
		11: "NotNull",
		12: "Between",
	}
	Filter_Cond_value = map[string]int32{
		"None":    0,
		"Eq":      1,
		"Neq":     2,
		"Gt":      3,
		"Gte":     4,
		"Lt":      5,
		"Lte":     6,
		"Like":    7,
		"In":      8,
		"NotIn":   9,
		"IsNull":  10,
		"NotNull": 11,
		"Between": 12,
	}
)

Enum value maps for Filter_Cond.

View Source
var (
	Filter_OrderByDerection_name = map[int32]string{
		0: "Asc",
		1: "Desc",
	}
	Filter_OrderByDerection_value = map[string]int32{
		"Asc":  0,
		"Desc": 1,
	}
)

Enum value maps for Filter_OrderByDerection.

View Source
var File_core_proto_base_base_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Debug

type Debug struct {
	LogLevel string `protobuf:"bytes,1,opt,name=log_level,json=logLevel,proto3" json:"log_level,omitempty"`
	ShowSql  bool   `protobuf:"varint,2,opt,name=show_sql,json=showSql,proto3" json:"show_sql,omitempty"`
	// contains filtered or unexported fields
}

func (*Debug) Descriptor deprecated

func (*Debug) Descriptor() ([]byte, []int)

Deprecated: Use Debug.ProtoReflect.Descriptor instead.

func (*Debug) GetLogLevel

func (x *Debug) GetLogLevel() string

func (*Debug) GetShowSql

func (x *Debug) GetShowSql() bool

func (*Debug) ProtoMessage

func (*Debug) ProtoMessage()

func (*Debug) ProtoReflect

func (x *Debug) ProtoReflect() protoreflect.Message

func (*Debug) Reset

func (x *Debug) Reset()

func (*Debug) String

func (x *Debug) String() string

type Filter

type Filter struct {

	// Types that are assignable to Filter:
	//	*Filter_And_
	//	*Filter_Or_
	//	*Filter_OrderBy_
	Filter isFilter_Filter `protobuf_oneof:"filter"`
	// contains filtered or unexported fields
}

查询条件

func (*Filter) Descriptor deprecated

func (*Filter) Descriptor() ([]byte, []int)

Deprecated: Use Filter.ProtoReflect.Descriptor instead.

func (*Filter) GetAnd

func (x *Filter) GetAnd() *Filter_And

func (*Filter) GetFilter

func (m *Filter) GetFilter() isFilter_Filter

func (*Filter) GetOr

func (x *Filter) GetOr() *Filter_Or

func (*Filter) GetOrderBy

func (x *Filter) GetOrderBy() *Filter_OrderBy

func (*Filter) ProtoMessage

func (*Filter) ProtoMessage()

func (*Filter) ProtoReflect

func (x *Filter) ProtoReflect() protoreflect.Message

func (*Filter) Reset

func (x *Filter) Reset()

func (*Filter) String

func (x *Filter) String() string

type Filter_And

type Filter_And struct {

	// 条件 enum Cond
	Cond string `protobuf:"bytes,1,opt,name=cond,proto3" json:"cond,omitempty"`
	// 字段
	Column string `protobuf:"bytes,2,opt,name=column,proto3" json:"column,omitempty"`
	// 判断参数
	Args []string `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"`
	// contains filtered or unexported fields
}

and 条件

func (*Filter_And) Descriptor deprecated

func (*Filter_And) Descriptor() ([]byte, []int)

Deprecated: Use Filter_And.ProtoReflect.Descriptor instead.

func (*Filter_And) GetArgs

func (x *Filter_And) GetArgs() []string

func (*Filter_And) GetColumn

func (x *Filter_And) GetColumn() string

func (*Filter_And) GetCond

func (x *Filter_And) GetCond() string

func (*Filter_And) ProtoMessage

func (*Filter_And) ProtoMessage()

func (*Filter_And) ProtoReflect

func (x *Filter_And) ProtoReflect() protoreflect.Message

func (*Filter_And) Reset

func (x *Filter_And) Reset()

func (*Filter_And) String

func (x *Filter_And) String() string

type Filter_And_

type Filter_And_ struct {
	And *Filter_And `protobuf:"bytes,1,opt,name=and,proto3,oneof"`
}

type Filter_Cond

type Filter_Cond int32
const (
	Filter_None Filter_Cond = 0
	// a = ?
	Filter_Eq Filter_Cond = 1
	// a <> ?
	Filter_Neq Filter_Cond = 2
	// a > ?
	Filter_Gt Filter_Cond = 3
	// a >= ?
	Filter_Gte Filter_Cond = 4
	// a < ?
	Filter_Lt Filter_Cond = 5
	// a <= ?
	Filter_Lte Filter_Cond = 6
	// a Like ?
	Filter_Like Filter_Cond = 7
	// a IN (?,?,?)
	Filter_In Filter_Cond = 8
	// a NOT IN (?, ?, ?)
	Filter_NotIn Filter_Cond = 9
	// a IS NULL []
	Filter_IsNull Filter_Cond = 10
	// a IS NOT NULL []
	Filter_NotNull Filter_Cond = 11
	// a BETWEEN 1 AND 2
	Filter_Between Filter_Cond = 12
)

func (Filter_Cond) Descriptor

func (Filter_Cond) Enum

func (x Filter_Cond) Enum() *Filter_Cond

func (Filter_Cond) EnumDescriptor deprecated

func (Filter_Cond) EnumDescriptor() ([]byte, []int)

Deprecated: Use Filter_Cond.Descriptor instead.

func (Filter_Cond) Number

func (x Filter_Cond) Number() protoreflect.EnumNumber

func (Filter_Cond) String

func (x Filter_Cond) String() string

func (Filter_Cond) Type

type Filter_Or

type Filter_Or struct {

	// 条件
	Cond string `protobuf:"bytes,1,opt,name=cond,proto3" json:"cond,omitempty"`
	// 字段
	Column string `protobuf:"bytes,2,opt,name=column,proto3" json:"column,omitempty"`
	// 参数
	Args []string `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"`
	// contains filtered or unexported fields
}

or 条件

func (*Filter_Or) Descriptor deprecated

func (*Filter_Or) Descriptor() ([]byte, []int)

Deprecated: Use Filter_Or.ProtoReflect.Descriptor instead.

func (*Filter_Or) GetArgs

func (x *Filter_Or) GetArgs() []string

func (*Filter_Or) GetColumn

func (x *Filter_Or) GetColumn() string

func (*Filter_Or) GetCond

func (x *Filter_Or) GetCond() string

func (*Filter_Or) ProtoMessage

func (*Filter_Or) ProtoMessage()

func (*Filter_Or) ProtoReflect

func (x *Filter_Or) ProtoReflect() protoreflect.Message

func (*Filter_Or) Reset

func (x *Filter_Or) Reset()

func (*Filter_Or) String

func (x *Filter_Or) String() string

type Filter_Or_

type Filter_Or_ struct {
	Or *Filter_Or `protobuf:"bytes,2,opt,name=or,proto3,oneof"`
}

type Filter_OrderBy

type Filter_OrderBy struct {

	// 条件
	OrderByDirection Filter_OrderByDerection `` /* 146-byte string literal not displayed */
	//字段
	Column string `protobuf:"bytes,2,opt,name=column,proto3" json:"column,omitempty"`
	// contains filtered or unexported fields
}

order by

func (*Filter_OrderBy) Descriptor deprecated

func (*Filter_OrderBy) Descriptor() ([]byte, []int)

Deprecated: Use Filter_OrderBy.ProtoReflect.Descriptor instead.

func (*Filter_OrderBy) GetColumn

func (x *Filter_OrderBy) GetColumn() string

func (*Filter_OrderBy) GetOrderByDirection

func (x *Filter_OrderBy) GetOrderByDirection() Filter_OrderByDerection

func (*Filter_OrderBy) ProtoMessage

func (*Filter_OrderBy) ProtoMessage()

func (*Filter_OrderBy) ProtoReflect

func (x *Filter_OrderBy) ProtoReflect() protoreflect.Message

func (*Filter_OrderBy) Reset

func (x *Filter_OrderBy) Reset()

func (*Filter_OrderBy) String

func (x *Filter_OrderBy) String() string

type Filter_OrderByDerection

type Filter_OrderByDerection int32
const (
	Filter_Asc  Filter_OrderByDerection = 0
	Filter_Desc Filter_OrderByDerection = 1
)

func (Filter_OrderByDerection) Descriptor

func (Filter_OrderByDerection) Enum

func (Filter_OrderByDerection) EnumDescriptor deprecated

func (Filter_OrderByDerection) EnumDescriptor() ([]byte, []int)

Deprecated: Use Filter_OrderByDerection.Descriptor instead.

func (Filter_OrderByDerection) Number

func (Filter_OrderByDerection) String

func (x Filter_OrderByDerection) String() string

func (Filter_OrderByDerection) Type

type Filter_OrderBy_

type Filter_OrderBy_ struct {
	OrderBy *Filter_OrderBy `protobuf:"bytes,3,opt,name=order_by,json=orderBy,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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