www_ichub_gowebcode_srv_service

package
v0.0.0-...-c47cd45 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: MulanPSL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_item_proto_proto protoreflect.FileDescriptor

Functions

func NewItemEndpoints

func NewItemEndpoints() []*api.Endpoint

func RegisterItemHandler

func RegisterItemHandler(s server.Server, hdlr ItemHandler, opts ...server.HandlerOption) error

Types

type ItemByIdsRequest

type ItemByIdsRequest struct {
	Ids string `protobuf:"bytes,1,opt,name=ids,proto3" json:"ids,omitempty"`
	// contains filtered or unexported fields
}

func (*ItemByIdsRequest) Descriptor deprecated

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

Deprecated: Use ItemByIdsRequest.ProtoReflect.Descriptor instead.

func (*ItemByIdsRequest) GetIds

func (x *ItemByIdsRequest) GetIds() string

func (*ItemByIdsRequest) ProtoMessage

func (*ItemByIdsRequest) ProtoMessage()

func (*ItemByIdsRequest) ProtoReflect

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

func (*ItemByIdsRequest) Reset

func (x *ItemByIdsRequest) Reset()

func (*ItemByIdsRequest) String

func (x *ItemByIdsRequest) String() string

type ItemEmpty

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

func (*ItemEmpty) Descriptor deprecated

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

Deprecated: Use ItemEmpty.ProtoReflect.Descriptor instead.

func (*ItemEmpty) ProtoMessage

func (*ItemEmpty) ProtoMessage()

func (*ItemEmpty) ProtoReflect

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

func (*ItemEmpty) Reset

func (x *ItemEmpty) Reset()

func (*ItemEmpty) String

func (x *ItemEmpty) String() string

type ItemHandler

type ItemHandler interface {
	Init(context.Context, *ItemEmpty, *ItemEmpty) error
	// 根据 Id 获取
	FindById(context.Context, *ItemIDRequest, *ItemJsonResultData) error
	// 根据主键删除
	DeleteById(context.Context, *ItemIDRequest, *ItemJsonResult) error
	//
	//主键Id为nil or 0新增,!= nil 修改
	Save(context.Context, *ItemMessage, *ItemJsonResult) error
	//
	//更新非空字段,参数可能要变成一个string包装json
	UpdateNotNullProps(context.Context, *ItemMessageData, *ItemJsonResult) error
	// 通用查询
	Query(context.Context, *ItemQueryParam, *ItemPageResult) error
	QueryBy(context.Context, *ItemQueryParamMessage, *ItemPageResult) error
	//
	//根据主键id 查询多条记录
	//FindByIds("1,36,39")
	FindByIds(context.Context, *ItemByIdsRequest, *ItemPageResult) error
}

type ItemIDRequest

type ItemIDRequest struct {
	Id int32 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"`
	// contains filtered or unexported fields
}

func (*ItemIDRequest) Descriptor deprecated

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

Deprecated: Use ItemIDRequest.ProtoReflect.Descriptor instead.

func (*ItemIDRequest) GetId

func (x *ItemIDRequest) GetId() int32

func (*ItemIDRequest) ProtoMessage

func (*ItemIDRequest) ProtoMessage()

func (*ItemIDRequest) ProtoReflect

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

func (*ItemIDRequest) Reset

func (x *ItemIDRequest) Reset()

func (*ItemIDRequest) String

func (x *ItemIDRequest) String() string

type ItemIntList

type ItemIntList struct {
	Value []int64 `protobuf:"varint,1,rep,packed,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*ItemIntList) Descriptor deprecated

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

Deprecated: Use ItemIntList.ProtoReflect.Descriptor instead.

func (*ItemIntList) GetValue

func (x *ItemIntList) GetValue() []int64

func (*ItemIntList) ProtoMessage

func (*ItemIntList) ProtoMessage()

func (*ItemIntList) ProtoReflect

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

func (*ItemIntList) Reset

func (x *ItemIntList) Reset()

func (*ItemIntList) String

func (x *ItemIntList) String() string

type ItemJsonResult

type ItemJsonResult struct {
	Code int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg  string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ItemJsonResult) Descriptor deprecated

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

Deprecated: Use ItemJsonResult.ProtoReflect.Descriptor instead.

func (*ItemJsonResult) GetCode

func (x *ItemJsonResult) GetCode() int32

func (*ItemJsonResult) GetData

func (x *ItemJsonResult) GetData() string

func (*ItemJsonResult) GetMsg

func (x *ItemJsonResult) GetMsg() string

func (*ItemJsonResult) ProtoMessage

func (*ItemJsonResult) ProtoMessage()

func (*ItemJsonResult) ProtoReflect

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

func (*ItemJsonResult) Reset

func (x *ItemJsonResult) Reset()

func (*ItemJsonResult) String

func (x *ItemJsonResult) String() string

type ItemJsonResultData

type ItemJsonResultData struct {
	Code int32        `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg  string       `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	Data *ItemMessage `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ItemJsonResultData) Descriptor deprecated

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

Deprecated: Use ItemJsonResultData.ProtoReflect.Descriptor instead.

func (*ItemJsonResultData) GetCode

func (x *ItemJsonResultData) GetCode() int32

func (*ItemJsonResultData) GetData

func (x *ItemJsonResultData) GetData() *ItemMessage

func (*ItemJsonResultData) GetMsg

func (x *ItemJsonResultData) GetMsg() string

func (*ItemJsonResultData) ProtoMessage

func (*ItemJsonResultData) ProtoMessage()

func (*ItemJsonResultData) ProtoReflect

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

func (*ItemJsonResultData) Reset

func (x *ItemJsonResultData) Reset()

func (*ItemJsonResultData) String

func (x *ItemJsonResultData) String() string

type ItemMessage

type ItemMessage struct {
	DateRanges   map[string]*ItemIntList    `` /* 161-byte string literal not displayed */
	IntRanges    map[string]*ItemIntList    `` /* 159-byte string literal not displayed */
	StringRanges map[string]*ItemStringList `` /* 165-byte string literal not displayed */
	InRanges     map[string]string          `` /* 157-byte string literal not displayed */
	Id           int32                      `protobuf:"varint,5,opt,name=id,proto3" json:"id,omitempty"`
	NamespaceId  int32                      `protobuf:"varint,6,opt,name=namespaceId,proto3" json:"namespaceId,omitempty"`
	ItemKey      string                     `protobuf:"bytes,7,opt,name=itemKey,proto3" json:"itemKey,omitempty"`
	Type         int32                      `protobuf:"varint,8,opt,name=type,proto3" json:"type,omitempty"`
	Value        string                     `protobuf:"bytes,9,opt,name=value,proto3" json:"value,omitempty"`
	Comment      string                     `protobuf:"bytes,10,opt,name=comment,proto3" json:"comment,omitempty"`
	LineNum      int32                      `protobuf:"varint,11,opt,name=lineNum,proto3" json:"lineNum,omitempty"`
	IsDeleted    int32                      `protobuf:"varint,12,opt,name=isDeleted,proto3" json:"isDeleted,omitempty"`
	DeletedAt    int64                      `protobuf:"varint,13,opt,name=deletedAt,proto3" json:"deletedAt,omitempty"`
	CeatedBy     string                     `protobuf:"bytes,14,opt,name=ceatedBy,proto3" json:"ceatedBy,omitempty"`
	CreatedAt    int64                      `protobuf:"varint,15,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	UpdatedBy    string                     `protobuf:"bytes,16,opt,name=updatedBy,proto3" json:"updatedBy,omitempty"`
	UpdatedAt    int64                      `protobuf:"varint,17,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
	// contains filtered or unexported fields
}

func (*ItemMessage) Descriptor deprecated

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

Deprecated: Use ItemMessage.ProtoReflect.Descriptor instead.

func (*ItemMessage) GetCeatedBy

func (x *ItemMessage) GetCeatedBy() string

func (*ItemMessage) GetComment

func (x *ItemMessage) GetComment() string

func (*ItemMessage) GetCreatedAt

func (x *ItemMessage) GetCreatedAt() int64

func (*ItemMessage) GetDateRanges

func (x *ItemMessage) GetDateRanges() map[string]*ItemIntList

func (*ItemMessage) GetDeletedAt

func (x *ItemMessage) GetDeletedAt() int64

func (*ItemMessage) GetId

func (x *ItemMessage) GetId() int32

func (*ItemMessage) GetInRanges

func (x *ItemMessage) GetInRanges() map[string]string

func (*ItemMessage) GetIntRanges

func (x *ItemMessage) GetIntRanges() map[string]*ItemIntList

func (*ItemMessage) GetIsDeleted

func (x *ItemMessage) GetIsDeleted() int32

func (*ItemMessage) GetItemKey

func (x *ItemMessage) GetItemKey() string

func (*ItemMessage) GetLineNum

func (x *ItemMessage) GetLineNum() int32

func (*ItemMessage) GetNamespaceId

func (x *ItemMessage) GetNamespaceId() int32

func (*ItemMessage) GetStringRanges

func (x *ItemMessage) GetStringRanges() map[string]*ItemStringList

func (*ItemMessage) GetType

func (x *ItemMessage) GetType() int32

func (*ItemMessage) GetUpdatedAt

func (x *ItemMessage) GetUpdatedAt() int64

func (*ItemMessage) GetUpdatedBy

func (x *ItemMessage) GetUpdatedBy() string

func (*ItemMessage) GetValue

func (x *ItemMessage) GetValue() string

func (*ItemMessage) ProtoMessage

func (*ItemMessage) ProtoMessage()

func (*ItemMessage) ProtoReflect

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

func (*ItemMessage) Reset

func (x *ItemMessage) Reset()

func (*ItemMessage) String

func (x *ItemMessage) String() string

type ItemMessageData

type ItemMessageData struct {
	Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ItemMessageData) Descriptor deprecated

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

Deprecated: Use ItemMessageData.ProtoReflect.Descriptor instead.

func (*ItemMessageData) GetData

func (x *ItemMessageData) GetData() string

func (*ItemMessageData) ProtoMessage

func (*ItemMessageData) ProtoMessage()

func (*ItemMessageData) ProtoReflect

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

func (*ItemMessageData) Reset

func (x *ItemMessageData) Reset()

func (*ItemMessageData) String

func (x *ItemMessageData) String() string

type ItemPageParam

type ItemPageParam struct {
	Current  int32 `protobuf:"varint,1,opt,name=current,proto3" json:"current,omitempty"`
	PageSize int32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	Total    int32 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"`
	Count    int32 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*ItemPageParam) Descriptor deprecated

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

Deprecated: Use ItemPageParam.ProtoReflect.Descriptor instead.

func (*ItemPageParam) GetCount

func (x *ItemPageParam) GetCount() int32

func (*ItemPageParam) GetCurrent

func (x *ItemPageParam) GetCurrent() int32

func (*ItemPageParam) GetPageSize

func (x *ItemPageParam) GetPageSize() int32

func (*ItemPageParam) GetTotal

func (x *ItemPageParam) GetTotal() int32

func (*ItemPageParam) ProtoMessage

func (*ItemPageParam) ProtoMessage()

func (*ItemPageParam) ProtoReflect

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

func (*ItemPageParam) Reset

func (x *ItemPageParam) Reset()

func (*ItemPageParam) String

func (x *ItemPageParam) String() string

type ItemPageResult

type ItemPageResult struct {
	Code int32          `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg  string         `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	Page *ItemPageParam `protobuf:"bytes,3,opt,name=page,proto3" json:"page,omitempty"`
	Data []*ItemMessage `protobuf:"bytes,4,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ItemPageResult) Descriptor deprecated

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

Deprecated: Use ItemPageResult.ProtoReflect.Descriptor instead.

func (*ItemPageResult) GetCode

func (x *ItemPageResult) GetCode() int32

func (*ItemPageResult) GetData

func (x *ItemPageResult) GetData() []*ItemMessage

func (*ItemPageResult) GetMsg

func (x *ItemPageResult) GetMsg() string

func (*ItemPageResult) GetPage

func (x *ItemPageResult) GetPage() *ItemPageParam

func (*ItemPageResult) ProtoMessage

func (*ItemPageResult) ProtoMessage()

func (*ItemPageResult) ProtoReflect

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

func (*ItemPageResult) Reset

func (x *ItemPageResult) Reset()

func (*ItemPageResult) String

func (x *ItemPageResult) String() string

type ItemQueryParam

type ItemQueryParam struct {
	Current    int32        `protobuf:"varint,1,opt,name=current,proto3" json:"current,omitempty"`
	PageSize   int32        `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	OrderBys   string       `protobuf:"bytes,3,opt,name=orderBys,proto3" json:"orderBys,omitempty"`
	FuzzyQuery string       `protobuf:"bytes,4,opt,name=fuzzyQuery,proto3" json:"fuzzyQuery,omitempty"`
	EsQuery    string       `protobuf:"bytes,5,opt,name=esQuery,proto3" json:"esQuery,omitempty"`
	Param      *ItemMessage `protobuf:"bytes,6,opt,name=param,proto3" json:"param,omitempty"`
	// contains filtered or unexported fields
}

func (*ItemQueryParam) Descriptor deprecated

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

Deprecated: Use ItemQueryParam.ProtoReflect.Descriptor instead.

func (*ItemQueryParam) GetCurrent

func (x *ItemQueryParam) GetCurrent() int32

func (*ItemQueryParam) GetEsQuery

func (x *ItemQueryParam) GetEsQuery() string

func (*ItemQueryParam) GetFuzzyQuery

func (x *ItemQueryParam) GetFuzzyQuery() string

func (*ItemQueryParam) GetOrderBys

func (x *ItemQueryParam) GetOrderBys() string

func (*ItemQueryParam) GetPageSize

func (x *ItemQueryParam) GetPageSize() int32

func (*ItemQueryParam) GetParam

func (x *ItemQueryParam) GetParam() *ItemMessage

func (*ItemQueryParam) ProtoMessage

func (*ItemQueryParam) ProtoMessage()

func (*ItemQueryParam) ProtoReflect

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

func (*ItemQueryParam) Reset

func (x *ItemQueryParam) Reset()

func (*ItemQueryParam) String

func (x *ItemQueryParam) String() string

type ItemQueryParamMessage

type ItemQueryParamMessage struct {
	Current    int32  `protobuf:"varint,1,opt,name=current,proto3" json:"current,omitempty"`
	PageSize   int32  `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	OrderBys   string `protobuf:"bytes,3,opt,name=orderBys,proto3" json:"orderBys,omitempty"`
	FuzzyQuery string `protobuf:"bytes,4,opt,name=fuzzyQuery,proto3" json:"fuzzyQuery,omitempty"`
	EsQuery    string `protobuf:"bytes,5,opt,name=esQuery,proto3" json:"esQuery,omitempty"`
	// json串
	Param string `protobuf:"bytes,6,opt,name=param,proto3" json:"param,omitempty"`
	// contains filtered or unexported fields
}

func (*ItemQueryParamMessage) Descriptor deprecated

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

Deprecated: Use ItemQueryParamMessage.ProtoReflect.Descriptor instead.

func (*ItemQueryParamMessage) GetCurrent

func (x *ItemQueryParamMessage) GetCurrent() int32

func (*ItemQueryParamMessage) GetEsQuery

func (x *ItemQueryParamMessage) GetEsQuery() string

func (*ItemQueryParamMessage) GetFuzzyQuery

func (x *ItemQueryParamMessage) GetFuzzyQuery() string

func (*ItemQueryParamMessage) GetOrderBys

func (x *ItemQueryParamMessage) GetOrderBys() string

func (*ItemQueryParamMessage) GetPageSize

func (x *ItemQueryParamMessage) GetPageSize() int32

func (*ItemQueryParamMessage) GetParam

func (x *ItemQueryParamMessage) GetParam() string

func (*ItemQueryParamMessage) ProtoMessage

func (*ItemQueryParamMessage) ProtoMessage()

func (*ItemQueryParamMessage) ProtoReflect

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

func (*ItemQueryParamMessage) Reset

func (x *ItemQueryParamMessage) Reset()

func (*ItemQueryParamMessage) String

func (x *ItemQueryParamMessage) String() string

type ItemService

type ItemService interface {
	Init(ctx context.Context, in *ItemEmpty, opts ...client.CallOption) (*ItemEmpty, error)
	// 根据 Id 获取
	FindById(ctx context.Context, in *ItemIDRequest, opts ...client.CallOption) (*ItemJsonResultData, error)
	// 根据主键删除
	DeleteById(ctx context.Context, in *ItemIDRequest, opts ...client.CallOption) (*ItemJsonResult, error)
	//
	//主键Id为nil or 0新增,!= nil 修改
	Save(ctx context.Context, in *ItemMessage, opts ...client.CallOption) (*ItemJsonResult, error)
	//
	//更新非空字段,参数可能要变成一个string包装json
	UpdateNotNullProps(ctx context.Context, in *ItemMessageData, opts ...client.CallOption) (*ItemJsonResult, error)
	// 通用查询
	Query(ctx context.Context, in *ItemQueryParam, opts ...client.CallOption) (*ItemPageResult, error)
	QueryBy(ctx context.Context, in *ItemQueryParamMessage, opts ...client.CallOption) (*ItemPageResult, error)
	//
	//根据主键id 查询多条记录
	//FindByIds("1,36,39")
	FindByIds(ctx context.Context, in *ItemByIdsRequest, opts ...client.CallOption) (*ItemPageResult, error)
}

func NewItemService

func NewItemService(name string, c client.Client) ItemService

type ItemStringList

type ItemStringList struct {
	Value []string `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*ItemStringList) Descriptor deprecated

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

Deprecated: Use ItemStringList.ProtoReflect.Descriptor instead.

func (*ItemStringList) GetValue

func (x *ItemStringList) GetValue() []string

func (*ItemStringList) ProtoMessage

func (*ItemStringList) ProtoMessage()

func (*ItemStringList) ProtoReflect

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

func (*ItemStringList) Reset

func (x *ItemStringList) Reset()

func (*ItemStringList) String

func (x *ItemStringList) String() string

Jump to

Keyboard shortcuts

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