Documentation ¶
Index ¶
- func AttributeToPb(d Attribute) *pbsemantic.AttributeData
- func MustUserId(d Attribute, uid uint64) error
- type Attribute
- type ProductAttributeData
- func FindProductAttributeData(ctx context.Context, db *sqlx.DB, id uint64) (*ProductAttributeData, error)
- func FindProductAttributeDataByMatch(ctx context.Context, db *sqlx.DB, schemaId uint64, entity *pbshared.Entity) (*ProductAttributeData, error)
- func FindProductAttributeDatasByMatch(ctx context.Context, db *sqlx.DB, entity *pbshared.Entity) ([]*ProductAttributeData, error)
- func NewProductAttributeData(t value.Type) (*ProductAttributeData, error)
- func (d *ProductAttributeData) Clone() (*ProductAttributeData, error)
- func (sp *ProductAttributeData) GetId() uint64
- func (pc *ProductAttributeData) GetSchemaId() uint64
- func (pc *ProductAttributeData) GetUserId() uint64
- func (pc *ProductAttributeData) GetValue() value.Value
- func (sp *ProductAttributeData) SQLMap() map[string]driver.Value
- func (sp *ProductAttributeData) SQLTable() string
- func (sp *ProductAttributeData) SetId(id uint64)
- func (pc *ProductAttributeData) SetSchemaId(i uint64)
- func (pc *ProductAttributeData) SetUserId(i uint64)
- func (pc *ProductAttributeData) SetValue(v interface{}) error
- type ServiceProviderAttributeData
- func FindServiceProviderAttributeData(ctx context.Context, db *sqlx.DB, id uint64) (*ServiceProviderAttributeData, error)
- func FindServiceProviderAttributeDataByMatch(ctx context.Context, db *sqlx.DB, schemaId uint64, entity *pbshared.Entity) (*ServiceProviderAttributeData, error)
- func FindServiceProviderAttributeDatasByMatch(ctx context.Context, db *sqlx.DB, entity *pbshared.Entity) ([]*ServiceProviderAttributeData, error)
- func NewServiceProviderAttributeData(t value.Type) (*ServiceProviderAttributeData, error)
- func (sp *ServiceProviderAttributeData) GetId() uint64
- func (pc *ServiceProviderAttributeData) GetSchemaId() uint64
- func (pc *ServiceProviderAttributeData) GetUserId() uint64
- func (pc *ServiceProviderAttributeData) GetValue() value.Value
- func (sp *ServiceProviderAttributeData) SQLMap() map[string]driver.Value
- func (sp *ServiceProviderAttributeData) SQLTable() string
- func (sp *ServiceProviderAttributeData) SetId(id uint64)
- func (pc *ServiceProviderAttributeData) SetSchemaId(i uint64)
- func (pc *ServiceProviderAttributeData) SetUserId(i uint64)
- func (pc *ServiceProviderAttributeData) SetValue(v interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttributeToPb ¶
func AttributeToPb(d Attribute) *pbsemantic.AttributeData
func MustUserId ¶
Types ¶
type ProductAttributeData ¶
type ProductAttributeData struct { Id uint64 `json:"id,omitempty"` SchemaId uint64 `json:"schema_id,omitempty"` UserId uint64 `json:"user_id,omitempty"` EntityId uint64 `json:"entity_id,omitempty"` EntityTable string `json:"entity_table,omitempty"` BoolValue *value.Bool `json:"bool_value,omitempty"` StringValue *value.String `json:"string_value,omitempty"` Int64Value *value.Int64 `json:"int_64_value,omitempty"` Float64Value *value.Float64 `json:"float_64_value,omitempty"` SlStringValue *value.SlString `json:"sl_string_value,omitempty"` SlInt64Value *value.SlInt64 `json:"sl_int_64_value,omitempty"` SlFloat64Value *value.SlFloat64 `json:"sl_float_64_value,omitempty"` // contains filtered or unexported fields }
func NewProductAttributeData ¶
func NewProductAttributeData(t value.Type) (*ProductAttributeData, error)
func (*ProductAttributeData) Clone ¶
func (d *ProductAttributeData) Clone() (*ProductAttributeData, error)
func (*ProductAttributeData) GetId ¶
func (sp *ProductAttributeData) GetId() uint64
func (*ProductAttributeData) GetSchemaId ¶
func (pc *ProductAttributeData) GetSchemaId() uint64
func (*ProductAttributeData) GetUserId ¶
func (pc *ProductAttributeData) GetUserId() uint64
func (*ProductAttributeData) GetValue ¶
func (pc *ProductAttributeData) GetValue() value.Value
func (*ProductAttributeData) SQLMap ¶
func (sp *ProductAttributeData) SQLMap() map[string]driver.Value
func (*ProductAttributeData) SQLTable ¶
func (sp *ProductAttributeData) SQLTable() string
func (*ProductAttributeData) SetId ¶
func (sp *ProductAttributeData) SetId(id uint64)
func (*ProductAttributeData) SetSchemaId ¶
func (pc *ProductAttributeData) SetSchemaId(i uint64)
func (*ProductAttributeData) SetUserId ¶
func (pc *ProductAttributeData) SetUserId(i uint64)
func (*ProductAttributeData) SetValue ¶
func (pc *ProductAttributeData) SetValue(v interface{}) error
type ServiceProviderAttributeData ¶
type ServiceProviderAttributeData struct { Id uint64 `json:"id,omitempty"` SchemaId uint64 `json:"schema_id,omitempty"` UserId uint64 `json:"user_id,omitempty"` EntityId uint64 `json:"entity_id,omitempty"` EntityTable string `json:"entity_table,omitempty"` BoolValue *value.Bool `json:"bool_value,omitempty"` StringValue *value.String `json:"string_value,omitempty"` Int64Value *value.Int64 `json:"int_64_value,omitempty"` Float64Value *value.Float64 `json:"float_64_value,omitempty"` SlStringValue *value.SlString `json:"sl_string_value,omitempty"` SlInt64Value *value.SlInt64 `json:"sl_int_64_value,omitempty"` SlFloat64Value *value.SlFloat64 `json:"sl_float_64_value,omitempty"` }
func NewServiceProviderAttributeData ¶
func NewServiceProviderAttributeData(t value.Type) (*ServiceProviderAttributeData, error)
func (*ServiceProviderAttributeData) GetId ¶
func (sp *ServiceProviderAttributeData) GetId() uint64
func (*ServiceProviderAttributeData) GetSchemaId ¶
func (pc *ServiceProviderAttributeData) GetSchemaId() uint64
func (*ServiceProviderAttributeData) GetUserId ¶
func (pc *ServiceProviderAttributeData) GetUserId() uint64
func (*ServiceProviderAttributeData) GetValue ¶
func (pc *ServiceProviderAttributeData) GetValue() value.Value
func (*ServiceProviderAttributeData) SQLMap ¶
func (sp *ServiceProviderAttributeData) SQLMap() map[string]driver.Value
func (*ServiceProviderAttributeData) SQLTable ¶
func (sp *ServiceProviderAttributeData) SQLTable() string
func (*ServiceProviderAttributeData) SetId ¶
func (sp *ServiceProviderAttributeData) SetId(id uint64)
func (*ServiceProviderAttributeData) SetSchemaId ¶
func (pc *ServiceProviderAttributeData) SetSchemaId(i uint64)
func (*ServiceProviderAttributeData) SetUserId ¶
func (pc *ServiceProviderAttributeData) SetUserId(i uint64)
func (*ServiceProviderAttributeData) SetValue ¶
func (pc *ServiceProviderAttributeData) SetValue(v interface{}) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.