Documentation ¶
Index ¶
- Constants
- Variables
- func DefaultDeleteSysDict(ctx context.Context, in *SysDict, db *gorm.DB) error
- func DefaultDeleteSysDictSet(ctx context.Context, in []*SysDict, db *gorm.DB) error
- func RegisterDictHTTPServer(s *http.Server, srv DictHTTPServer)
- func RegisterDictServer(s grpc.ServiceRegistrar, srv DictServer)
- type DictClient
- type DictData
- func (*DictData) Descriptor() ([]byte, []int)deprecated
- func (x *DictData) GetDictCode() string
- func (x *DictData) GetDictItems() []*SysDictDataItem
- func (x *DictData) GetHashCode() string
- func (x *DictData) GetLoading() bool
- func (x *DictData) GetValueType() int32
- func (*DictData) ProtoMessage()
- func (x *DictData) ProtoReflect() protoreflect.Message
- func (x *DictData) Reset()
- func (x *DictData) String() string
- type DictDataReq
- type DictDataResp
- type DictDefaultServer
- func (m *DictDefaultServer) Create(ctx context.Context, in *SysDict) (*SysDict, error)
- func (m *DictDefaultServer) Delete(ctx context.Context, in *SysDict) (*SysDict, error)
- func (m *DictDefaultServer) List(ctx context.Context, in *SysDict) (*ListSysDictResp, error)
- func (m *DictDefaultServer) Update(ctx context.Context, in *SysDict) (*SysDict, error)
- type DictHTTPClient
- type DictHTTPClientImpl
- func (c *DictHTTPClientImpl) Create(ctx context.Context, in *SysDict, opts ...http.CallOption) (*SysDict, error)
- func (c *DictHTTPClientImpl) Delete(ctx context.Context, in *SysDict, opts ...http.CallOption) (*SysDict, error)
- func (c *DictHTTPClientImpl) DictData(ctx context.Context, in *DictDataReq, opts ...http.CallOption) (*DictDataResp, error)
- func (c *DictHTTPClientImpl) DictValidHash(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*ValidHashResp, error)
- func (c *DictHTTPClientImpl) Get(ctx context.Context, in *SysDict, opts ...http.CallOption) (*SysDict, error)
- func (c *DictHTTPClientImpl) List(ctx context.Context, in *SysDict, opts ...http.CallOption) (*ListSysDictResp, error)
- func (c *DictHTTPClientImpl) Update(ctx context.Context, in *SysDict, opts ...http.CallOption) (*SysDict, error)
- type DictHTTPServer
- type DictImpl
- func (c *DictImpl) Create(ctx context.Context, in *SysDict) (*SysDict, error)
- func (c *DictImpl) Delete(ctx context.Context, in *SysDict) (*SysDict, error)
- func (c *DictImpl) DictData(ctx context.Context, in *DictDataReq) (*DictDataResp, error)
- func (c *DictImpl) DictValidHash(ctx context.Context, in *emptypb.Empty) (*ValidHashResp, error)
- func (c *DictImpl) Get(ctx context.Context, in *SysDict) (*SysDict, error)
- func (c *DictImpl) List(ctx context.Context, in *SysDict) (*ListSysDictResp, error)
- func (c *DictImpl) Update(ctx context.Context, in *SysDict) (*SysDict, error)
- type DictServer
- type DictSysDictWithAfterCreate
- type DictSysDictWithAfterList
- type DictSysDictWithAfterUpdate
- type DictSysDictWithBeforeCreate
- type DictSysDictWithBeforeList
- type DictSysDictWithBeforeUpdate
- type ListSysDictResp
- type SysDict
- func DefaultApplyFieldMaskSysDict(ctx context.Context, patchee *SysDict, patcher *SysDict, ...) (*SysDict, error)
- func DefaultCreateSysDict(ctx context.Context, in *SysDict, db *gorm.DB) (*SysDict, error)
- func DefaultListSysDict(ctx context.Context, db *gorm.DB) ([]*SysDict, error)
- func DefaultPatchSetSysDict(ctx context.Context, objects []*SysDict, updateMasks []*field_mask.FieldMask, ...) ([]*SysDict, error)
- func DefaultPatchSysDict(ctx context.Context, in *SysDict, updateMask *field_mask.FieldMask, ...) (*SysDict, error)
- func DefaultReadSysDict(ctx context.Context, in *SysDict, db *gorm.DB) (*SysDict, error)
- func DefaultStrictUpdateSysDict(ctx context.Context, in *SysDict, db *gorm.DB) (*SysDict, error)
- func (*SysDict) Descriptor() ([]byte, []int)deprecated
- func (x *SysDict) GetCode() string
- func (x *SysDict) GetCreatedAt() string
- func (x *SysDict) GetDeleted() string
- func (x *SysDict) GetHashCode() string
- func (x *SysDict) GetId() int32
- func (x *SysDict) GetRemarks() string
- func (x *SysDict) GetStatus() int32
- func (x *SysDict) GetTitle() string
- func (x *SysDict) GetUpdatedAt() string
- func (x *SysDict) GetValueType() int32
- func (*SysDict) ProtoMessage()
- func (x *SysDict) ProtoReflect() protoreflect.Message
- func (x *SysDict) Reset()
- func (x *SysDict) String() string
- func (m *SysDict) ToORM(ctx context.Context) (SysDictORM, error)
- type SysDictDataItem
- func (*SysDictDataItem) Descriptor() ([]byte, []int)deprecated
- func (x *SysDictDataItem) GetAttributes() *SysDictItemAttributes
- func (x *SysDictDataItem) GetId() int32
- func (x *SysDictDataItem) GetName() string
- func (x *SysDictDataItem) GetRealVal() []byte
- func (x *SysDictDataItem) GetValue() string
- func (*SysDictDataItem) ProtoMessage()
- func (x *SysDictDataItem) ProtoReflect() protoreflect.Message
- func (x *SysDictDataItem) Reset()
- func (x *SysDictDataItem) String() string
- type SysDictItemAttributes
- func (*SysDictItemAttributes) Descriptor() ([]byte, []int)deprecated
- func (x *SysDictItemAttributes) GetTagColor() string
- func (x *SysDictItemAttributes) GetTextColor() string
- func (*SysDictItemAttributes) ProtoMessage()
- func (x *SysDictItemAttributes) ProtoReflect() protoreflect.Message
- func (x *SysDictItemAttributes) Reset()
- func (x *SysDictItemAttributes) String() string
- type SysDictORM
- type SysDictORMWithAfterCreate_
- type SysDictORMWithAfterDeleteSet
- type SysDictORMWithAfterDelete_
- type SysDictORMWithAfterListFind
- type SysDictORMWithAfterReadFind
- type SysDictORMWithAfterStrictUpdateSave
- type SysDictORMWithBeforeCreate_
- type SysDictORMWithBeforeDeleteSet
- type SysDictORMWithBeforeDelete_
- type SysDictORMWithBeforeListApplyQuery
- type SysDictORMWithBeforeListFind
- type SysDictORMWithBeforeReadApplyQuery
- type SysDictORMWithBeforeReadFind
- type SysDictORMWithBeforeStrictUpdateCleanup
- type SysDictORMWithBeforeStrictUpdateSave
- type SysDictWithAfterPatchSave
- type SysDictWithAfterToORM
- type SysDictWithAfterToPB
- type SysDictWithBeforePatchApplyFieldMask
- type SysDictWithBeforePatchRead
- type SysDictWithBeforePatchSave
- type SysDictWithBeforeToORM
- type SysDictWithBeforeToPB
- type UnimplementedDictServer
- func (UnimplementedDictServer) Create(context.Context, *SysDict) (*SysDict, error)
- func (UnimplementedDictServer) Delete(context.Context, *SysDict) (*SysDict, error)
- func (UnimplementedDictServer) DictData(context.Context, *DictDataReq) (*DictDataResp, error)
- func (UnimplementedDictServer) DictValidHash(context.Context, *emptypb.Empty) (*ValidHashResp, error)
- func (UnimplementedDictServer) Get(context.Context, *SysDict) (*SysDict, error)
- func (UnimplementedDictServer) List(context.Context, *SysDict) (*ListSysDictResp, error)
- func (UnimplementedDictServer) Update(context.Context, *SysDict) (*SysDict, error)
- type UnsafeDictServer
- type ValidHashResp
Constants ¶
const ( Dict_DictData_FullMethodName = "/atreus.dict.Dict/DictData" Dict_DictValidHash_FullMethodName = "/atreus.dict.Dict/DictValidHash" Dict_Create_FullMethodName = "/atreus.dict.Dict/Create" Dict_Update_FullMethodName = "/atreus.dict.Dict/Update" Dict_Delete_FullMethodName = "/atreus.dict.Dict/Delete" Dict_Get_FullMethodName = "/atreus.dict.Dict/Get" Dict_List_FullMethodName = "/atreus.dict.Dict/List" )
const OperationDictCreate = "/atreus.dict.Dict/Create"
const OperationDictDelete = "/atreus.dict.Dict/Delete"
const OperationDictDictData = "/atreus.dict.Dict/DictData"
const OperationDictDictValidHash = "/atreus.dict.Dict/DictValidHash"
const OperationDictGet = "/atreus.dict.Dict/Get"
const OperationDictList = "/atreus.dict.Dict/List"
const OperationDictUpdate = "/atreus.dict.Dict/Update"
Variables ¶
var Dict_ServiceDesc = grpc.ServiceDesc{ ServiceName: "atreus.dict.Dict", HandlerType: (*DictServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "DictData", Handler: _Dict_DictData_Handler, }, { MethodName: "DictValidHash", Handler: _Dict_DictValidHash_Handler, }, { MethodName: "Create", Handler: _Dict_Create_Handler, }, { MethodName: "Update", Handler: _Dict_Update_Handler, }, { MethodName: "Delete", Handler: _Dict_Delete_Handler, }, { MethodName: "Get", Handler: _Dict_Get_Handler, }, { MethodName: "List", Handler: _Dict_List_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/dict/dict.proto", }
Dict_ServiceDesc is the grpc.ServiceDesc for Dict service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_api_dict_dict_proto protoreflect.FileDescriptor
Functions ¶
func DefaultDeleteSysDict ¶
func DefaultDeleteSysDictSet ¶
func RegisterDictHTTPServer ¶
func RegisterDictHTTPServer(s *http.Server, srv DictHTTPServer)
func RegisterDictServer ¶
func RegisterDictServer(s grpc.ServiceRegistrar, srv DictServer)
Types ¶
type DictClient ¶
type DictClient interface { DictData(ctx context.Context, in *DictDataReq, opts ...grpc.CallOption) (*DictDataResp, error) DictValidHash(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ValidHashResp, error) // 创建字典 Create(ctx context.Context, in *SysDict, opts ...grpc.CallOption) (*SysDict, error) // 更新字典 Update(ctx context.Context, in *SysDict, opts ...grpc.CallOption) (*SysDict, error) // 删除字典 Delete(ctx context.Context, in *SysDict, opts ...grpc.CallOption) (*SysDict, error) // 获取字典 Get(ctx context.Context, in *SysDict, opts ...grpc.CallOption) (*SysDict, error) // 获取字典列表 List(ctx context.Context, in *SysDict, opts ...grpc.CallOption) (*ListSysDictResp, error) }
DictClient is the client API for Dict service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewDictClient ¶
func NewDictClient(cc grpc.ClientConnInterface) DictClient
type DictData ¶
type DictData struct { DictCode string `protobuf:"bytes,1,opt,name=dictCode,proto3" json:"dictCode,omitempty"` HashCode string `protobuf:"bytes,2,opt,name=hashCode,proto3" json:"hashCode,omitempty"` // 1: 数字; 2: 字符串; 3: 布尔 ValueType int32 `protobuf:"varint,3,opt,name=valueType,proto3" json:"valueType,omitempty"` DictItems []*SysDictDataItem `protobuf:"bytes,4,rep,name=dictItems,proto3" json:"dictItems,omitempty"` Loading bool `protobuf:"varint,5,opt,name=loading,proto3" json:"loading,omitempty"` // contains filtered or unexported fields }
func (*DictData) Descriptor
deprecated
func (*DictData) GetDictCode ¶
func (*DictData) GetDictItems ¶
func (x *DictData) GetDictItems() []*SysDictDataItem
func (*DictData) GetHashCode ¶
func (*DictData) GetLoading ¶
func (*DictData) GetValueType ¶
func (*DictData) ProtoMessage ¶
func (*DictData) ProtoMessage()
func (*DictData) ProtoReflect ¶
func (x *DictData) ProtoReflect() protoreflect.Message
type DictDataReq ¶
type DictDataReq struct { DictCodes string `protobuf:"bytes,1,opt,name=dictCodes,proto3" json:"dictCodes,omitempty"` // contains filtered or unexported fields }
func (*DictDataReq) Descriptor
deprecated
func (*DictDataReq) Descriptor() ([]byte, []int)
Deprecated: Use DictDataReq.ProtoReflect.Descriptor instead.
func (*DictDataReq) GetDictCodes ¶
func (x *DictDataReq) GetDictCodes() string
func (*DictDataReq) ProtoMessage ¶
func (*DictDataReq) ProtoMessage()
func (*DictDataReq) ProtoReflect ¶
func (x *DictDataReq) ProtoReflect() protoreflect.Message
func (*DictDataReq) Reset ¶
func (x *DictDataReq) Reset()
func (*DictDataReq) String ¶
func (x *DictDataReq) String() string
type DictDataResp ¶
type DictDataResp struct { Results []*DictData `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // contains filtered or unexported fields }
func (*DictDataResp) Descriptor
deprecated
func (*DictDataResp) Descriptor() ([]byte, []int)
Deprecated: Use DictDataResp.ProtoReflect.Descriptor instead.
func (*DictDataResp) GetResults ¶
func (x *DictDataResp) GetResults() []*DictData
func (*DictDataResp) ProtoMessage ¶
func (*DictDataResp) ProtoMessage()
func (*DictDataResp) ProtoReflect ¶
func (x *DictDataResp) ProtoReflect() protoreflect.Message
func (*DictDataResp) Reset ¶
func (x *DictDataResp) Reset()
func (*DictDataResp) String ¶
func (x *DictDataResp) String() string
type DictDefaultServer ¶
func (*DictDefaultServer) List ¶
func (m *DictDefaultServer) List(ctx context.Context, in *SysDict) (*ListSysDictResp, error)
List ...
type DictHTTPClient ¶
type DictHTTPClient interface { Create(ctx context.Context, req *SysDict, opts ...http.CallOption) (rsp *SysDict, err error) Delete(ctx context.Context, req *SysDict, opts ...http.CallOption) (rsp *SysDict, err error) DictData(ctx context.Context, req *DictDataReq, opts ...http.CallOption) (rsp *DictDataResp, err error) DictValidHash(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *ValidHashResp, err error) Get(ctx context.Context, req *SysDict, opts ...http.CallOption) (rsp *SysDict, err error) List(ctx context.Context, req *SysDict, opts ...http.CallOption) (rsp *ListSysDictResp, err error) Update(ctx context.Context, req *SysDict, opts ...http.CallOption) (rsp *SysDict, err error) }
func NewDictHTTPClient ¶
func NewDictHTTPClient(client *http.Client) DictHTTPClient
type DictHTTPClientImpl ¶
type DictHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*DictHTTPClientImpl) Create ¶
func (c *DictHTTPClientImpl) Create(ctx context.Context, in *SysDict, opts ...http.CallOption) (*SysDict, error)
func (*DictHTTPClientImpl) Delete ¶
func (c *DictHTTPClientImpl) Delete(ctx context.Context, in *SysDict, opts ...http.CallOption) (*SysDict, error)
func (*DictHTTPClientImpl) DictData ¶
func (c *DictHTTPClientImpl) DictData(ctx context.Context, in *DictDataReq, opts ...http.CallOption) (*DictDataResp, error)
func (*DictHTTPClientImpl) DictValidHash ¶
func (c *DictHTTPClientImpl) DictValidHash(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*ValidHashResp, error)
func (*DictHTTPClientImpl) Get ¶
func (c *DictHTTPClientImpl) Get(ctx context.Context, in *SysDict, opts ...http.CallOption) (*SysDict, error)
func (*DictHTTPClientImpl) List ¶
func (c *DictHTTPClientImpl) List(ctx context.Context, in *SysDict, opts ...http.CallOption) (*ListSysDictResp, error)
func (*DictHTTPClientImpl) Update ¶
func (c *DictHTTPClientImpl) Update(ctx context.Context, in *SysDict, opts ...http.CallOption) (*SysDict, error)
type DictHTTPServer ¶
type DictHTTPServer interface { // Create 创建字典 Create(context.Context, *SysDict) (*SysDict, error) // Delete 删除字典 Delete(context.Context, *SysDict) (*SysDict, error) DictData(context.Context, *DictDataReq) (*DictDataResp, error) DictValidHash(context.Context, *emptypb.Empty) (*ValidHashResp, error) // Get 获取字典 Get(context.Context, *SysDict) (*SysDict, error) // List 获取字典列表 List(context.Context, *SysDict) (*ListSysDictResp, error) // Update 更新字典 Update(context.Context, *SysDict) (*SysDict, error) }
type DictImpl ¶
type DictImpl struct {
// contains filtered or unexported fields
}
func NewDictImpl ¶
func NewDictImpl(conn *grpc.ClientConn) *DictImpl
func (*DictImpl) DictData ¶
func (c *DictImpl) DictData(ctx context.Context, in *DictDataReq) (*DictDataResp, error)
func (*DictImpl) DictValidHash ¶
type DictServer ¶
type DictServer interface { DictData(context.Context, *DictDataReq) (*DictDataResp, error) DictValidHash(context.Context, *emptypb.Empty) (*ValidHashResp, error) // 创建字典 Create(context.Context, *SysDict) (*SysDict, error) // 更新字典 Update(context.Context, *SysDict) (*SysDict, error) // 删除字典 Delete(context.Context, *SysDict) (*SysDict, error) // 获取字典 Get(context.Context, *SysDict) (*SysDict, error) // 获取字典列表 List(context.Context, *SysDict) (*ListSysDictResp, error) }
DictServer is the server API for Dict service. All implementations should embed UnimplementedDictServer for forward compatibility
type DictSysDictWithAfterCreate ¶
type DictSysDictWithAfterCreate interface {
AfterCreate(context.Context, *SysDict, *gorm.DB) error
}
DictSysDictWithAfterCreate called before DefaultCreateSysDict in the default Create handler
type DictSysDictWithAfterList ¶
type DictSysDictWithAfterList interface {
AfterList(context.Context, *ListSysDictResp, *gorm.DB) error
}
DictSysDictWithAfterList called before DefaultListSysDict in the default List handler
type DictSysDictWithAfterUpdate ¶
type DictSysDictWithAfterUpdate interface {
AfterUpdate(context.Context, *SysDict, *gorm.DB) error
}
DictSysDictWithAfterUpdate called before DefaultUpdateSysDict in the default Update handler
type DictSysDictWithBeforeCreate ¶
type DictSysDictWithBeforeCreate interface {
BeforeCreate(context.Context, *gorm.DB) (*gorm.DB, error)
}
DictSysDictWithBeforeCreate called before DefaultCreateSysDict in the default Create handler
type DictSysDictWithBeforeList ¶
type DictSysDictWithBeforeList interface {
BeforeList(context.Context, *gorm.DB) (*gorm.DB, error)
}
DictSysDictWithBeforeList called before DefaultListSysDict in the default List handler
type DictSysDictWithBeforeUpdate ¶
type DictSysDictWithBeforeUpdate interface {
BeforeUpdate(context.Context, *gorm.DB) (*gorm.DB, error)
}
DictSysDictWithBeforeUpdate called before DefaultUpdateSysDict in the default Update handler
type ListSysDictResp ¶
type ListSysDictResp struct { Results []*SysDict `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // contains filtered or unexported fields }
func (*ListSysDictResp) Descriptor
deprecated
func (*ListSysDictResp) Descriptor() ([]byte, []int)
Deprecated: Use ListSysDictResp.ProtoReflect.Descriptor instead.
func (*ListSysDictResp) GetResults ¶
func (x *ListSysDictResp) GetResults() []*SysDict
func (*ListSysDictResp) ProtoMessage ¶
func (*ListSysDictResp) ProtoMessage()
func (*ListSysDictResp) ProtoReflect ¶
func (x *ListSysDictResp) ProtoReflect() protoreflect.Message
func (*ListSysDictResp) Reset ¶
func (x *ListSysDictResp) Reset()
func (*ListSysDictResp) String ¶
func (x *ListSysDictResp) String() string
type SysDict ¶
type SysDict struct { // * // 编号 Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // * // 标识 Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` // * // 名称 Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` // * // Hash值 HashCode string `protobuf:"bytes,4,opt,name=hashCode,proto3" json:"hashCode,omitempty"` // * // 备注 Remarks string `protobuf:"bytes,5,opt,name=remarks,proto3" json:"remarks,omitempty"` // * // 状态,1:启用 0:禁用 Status int32 `protobuf:"varint,6,opt,name=status,proto3" json:"status,omitempty"` // * // 数据类型,1:int32 2:String 3:Boolean ValueType int32 `protobuf:"varint,7,opt,name=valueType,proto3" json:"valueType,omitempty"` // * // 逻辑删除标识,已删除:0,未删除:删除时间戳 Deleted string `protobuf:"bytes,8,opt,name=deleted,proto3" json:"deleted,omitempty"` // * // 创建时间 CreatedAt string `protobuf:"bytes,9,opt,name=createdAt,proto3" json:"createdAt,omitempty"` // * // 更新时间 UpdatedAt string `protobuf:"bytes,10,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` // contains filtered or unexported fields }
func DefaultApplyFieldMaskSysDict ¶
func DefaultApplyFieldMaskSysDict(ctx context.Context, patchee *SysDict, patcher *SysDict, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*SysDict, error)
DefaultApplyFieldMaskSysDict patches an pbObject with patcher according to a field mask.
func DefaultCreateSysDict ¶
DefaultCreateSysDict executes a basic gorm create call
func DefaultListSysDict ¶
DefaultListSysDict executes a gorm list call
func DefaultPatchSetSysDict ¶
func DefaultPatchSetSysDict(ctx context.Context, objects []*SysDict, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*SysDict, error)
DefaultPatchSetSysDict executes a bulk gorm update call with patch behavior
func DefaultPatchSysDict ¶
func DefaultPatchSysDict(ctx context.Context, in *SysDict, updateMask *field_mask.FieldMask, db *gorm.DB) (*SysDict, error)
DefaultPatchSysDict executes a basic gorm update call with patch behavior
func DefaultReadSysDict ¶
func DefaultStrictUpdateSysDict ¶
DefaultStrictUpdateSysDict clears / replaces / appends first level 1:many children and then executes a gorm update call
func (*SysDict) Descriptor
deprecated
func (*SysDict) GetCreatedAt ¶
func (*SysDict) GetDeleted ¶
func (*SysDict) GetHashCode ¶
func (*SysDict) GetRemarks ¶
func (*SysDict) GetUpdatedAt ¶
func (*SysDict) GetValueType ¶
func (*SysDict) ProtoMessage ¶
func (*SysDict) ProtoMessage()
func (*SysDict) ProtoReflect ¶
func (x *SysDict) ProtoReflect() protoreflect.Message
type SysDictDataItem ¶
type SysDictDataItem struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 文本值 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 数据值 Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` // 附加属性值 Attributes *SysDictItemAttributes `protobuf:"bytes,4,opt,name=attributes,proto3" json:"attributes,omitempty"` // 真实数据 RealVal []byte `protobuf:"bytes,5,opt,name=realVal,proto3" json:"realVal,omitempty"` // contains filtered or unexported fields }
func (*SysDictDataItem) Descriptor
deprecated
func (*SysDictDataItem) Descriptor() ([]byte, []int)
Deprecated: Use SysDictDataItem.ProtoReflect.Descriptor instead.
func (*SysDictDataItem) GetAttributes ¶
func (x *SysDictDataItem) GetAttributes() *SysDictItemAttributes
func (*SysDictDataItem) GetId ¶
func (x *SysDictDataItem) GetId() int32
func (*SysDictDataItem) GetName ¶
func (x *SysDictDataItem) GetName() string
func (*SysDictDataItem) GetRealVal ¶
func (x *SysDictDataItem) GetRealVal() []byte
func (*SysDictDataItem) GetValue ¶
func (x *SysDictDataItem) GetValue() string
func (*SysDictDataItem) ProtoMessage ¶
func (*SysDictDataItem) ProtoMessage()
func (*SysDictDataItem) ProtoReflect ¶
func (x *SysDictDataItem) ProtoReflect() protoreflect.Message
func (*SysDictDataItem) Reset ¶
func (x *SysDictDataItem) Reset()
func (*SysDictDataItem) String ¶
func (x *SysDictDataItem) String() string
type SysDictItemAttributes ¶
type SysDictItemAttributes struct { TagColor string `protobuf:"bytes,1,opt,name=tagColor,proto3" json:"tagColor,omitempty"` TextColor string `protobuf:"bytes,2,opt,name=textColor,proto3" json:"textColor,omitempty"` // contains filtered or unexported fields }
func (*SysDictItemAttributes) Descriptor
deprecated
func (*SysDictItemAttributes) Descriptor() ([]byte, []int)
Deprecated: Use SysDictItemAttributes.ProtoReflect.Descriptor instead.
func (*SysDictItemAttributes) GetTagColor ¶
func (x *SysDictItemAttributes) GetTagColor() string
func (*SysDictItemAttributes) GetTextColor ¶
func (x *SysDictItemAttributes) GetTextColor() string
func (*SysDictItemAttributes) ProtoMessage ¶
func (*SysDictItemAttributes) ProtoMessage()
func (*SysDictItemAttributes) ProtoReflect ¶
func (x *SysDictItemAttributes) ProtoReflect() protoreflect.Message
func (*SysDictItemAttributes) Reset ¶
func (x *SysDictItemAttributes) Reset()
func (*SysDictItemAttributes) String ¶
func (x *SysDictItemAttributes) String() string
type SysDictORM ¶
type SysDictORM struct { Code string CreatedAt string Deleted string HashCode string Id int32 `gorm:"primaryKey;autoIncrement"` Remarks string Status int32 Title string UpdatedAt string ValueType int32 }
func (SysDictORM) TableName ¶
func (SysDictORM) TableName() string
TableName overrides the default tablename generated by GORM
type SysDictORMWithBeforeCreate_ ¶
type SysDictORMWithBeforeCreate_ interface {
BeforeCreate_(context.Context, *gorm.DB, SysDictORM) (SysDictORM, *gorm.DB, error)
}
type SysDictORMWithBeforeDelete_ ¶
type SysDictORMWithBeforeDelete_ interface {
BeforeDelete_(context.Context, *gorm.DB, SysDictORM) (SysDictORM, *gorm.DB, error)
}
type SysDictORMWithBeforeStrictUpdateCleanup ¶
type SysDictORMWithBeforeStrictUpdateCleanup interface {
BeforeStrictUpdateCleanup(context.Context, *gorm.DB, SysDictORM) (SysDictORM, *gorm.DB, error)
}
type SysDictORMWithBeforeStrictUpdateSave ¶
type SysDictORMWithBeforeStrictUpdateSave interface {
BeforeStrictUpdateSave(context.Context, *gorm.DB, SysDictORM) (SysDictORM, *gorm.DB, error)
}
type SysDictWithAfterToORM ¶
type SysDictWithAfterToORM interface {
AfterToORM(context.Context, *SysDictORM) error
}
SysDictAfterToORM called after default ToORM code
type SysDictWithAfterToPB ¶
SysDictAfterToPB called after default ToPB code
type SysDictWithBeforeToORM ¶
type SysDictWithBeforeToORM interface {
BeforeToORM(context.Context, *SysDictORM) error
}
SysDictBeforeToORM called before default ToORM code
type SysDictWithBeforeToPB ¶
SysDictBeforeToPB called before default ToPB code
type UnimplementedDictServer ¶
type UnimplementedDictServer struct { }
UnimplementedDictServer should be embedded to have forward compatible implementations.
func (UnimplementedDictServer) DictData ¶
func (UnimplementedDictServer) DictData(context.Context, *DictDataReq) (*DictDataResp, error)
func (UnimplementedDictServer) DictValidHash ¶
func (UnimplementedDictServer) DictValidHash(context.Context, *emptypb.Empty) (*ValidHashResp, error)
func (UnimplementedDictServer) List ¶
func (UnimplementedDictServer) List(context.Context, *SysDict) (*ListSysDictResp, error)
type UnsafeDictServer ¶
type UnsafeDictServer interface {
// contains filtered or unexported methods
}
UnsafeDictServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DictServer will result in compilation errors.
type ValidHashResp ¶
type ValidHashResp struct { Results []string `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // contains filtered or unexported fields }
func (*ValidHashResp) Descriptor
deprecated
func (*ValidHashResp) Descriptor() ([]byte, []int)
Deprecated: Use ValidHashResp.ProtoReflect.Descriptor instead.
func (*ValidHashResp) GetResults ¶
func (x *ValidHashResp) GetResults() []string
func (*ValidHashResp) ProtoMessage ¶
func (*ValidHashResp) ProtoMessage()
func (*ValidHashResp) ProtoReflect ¶
func (x *ValidHashResp) ProtoReflect() protoreflect.Message
func (*ValidHashResp) Reset ¶
func (x *ValidHashResp) Reset()
func (*ValidHashResp) String ¶
func (x *ValidHashResp) String() string