parent
9b36644a31
commit
a482a083bf
14 changed files with 13 additions and 86 deletions
|
@ -85,11 +85,6 @@ type Characteristic struct {
|
|||
// Characteristics are multiple characteristic entities
|
||||
type Characteristics []*Characteristic
|
||||
|
||||
// CharacteristicMeta stashes some metadata related to the entity
|
||||
type CharacteristicMeta struct {
|
||||
CanAdd bool `json:"canAdd"`
|
||||
}
|
||||
|
||||
// ListCharacteristics returns all characteristics
|
||||
func ListCharacteristics(opt helpers.ListOptions, claims *types.Claims) (*Characteristics, error) {
|
||||
var vals []interface{}
|
||||
|
|
|
@ -166,11 +166,6 @@ func (m *Measurement) Value() string {
|
|||
// Measurements are multiple measurement entities
|
||||
type Measurements []*Measurement
|
||||
|
||||
// MeasurementMeta stashes some metadata related to the entity
|
||||
type MeasurementMeta struct {
|
||||
CanAdd bool `json:"canAdd"`
|
||||
}
|
||||
|
||||
// ListMeasurements returns all measurements
|
||||
func ListMeasurements(opt helpers.MeasurementListOptions, claims *types.Claims) (*Measurements, error) {
|
||||
var vals []interface{}
|
||||
|
|
|
@ -89,11 +89,6 @@ type Species struct {
|
|||
// ManySpecies is multiple species entities.
|
||||
type ManySpecies []*Species
|
||||
|
||||
// SpeciesMeta stashes some metadata related to the entity.
|
||||
type SpeciesMeta struct {
|
||||
CanAdd bool `json:"canAdd"`
|
||||
}
|
||||
|
||||
// GenusIDFromName looks up the genus' ID.
|
||||
func GenusIDFromName(genusName string) (int64, error) {
|
||||
var genusID struct{ ID int64 }
|
||||
|
|
|
@ -92,11 +92,6 @@ type Strain struct {
|
|||
// Strains are multiple strain entities.
|
||||
type Strains []*Strain
|
||||
|
||||
// StrainMeta stashes some metadata related to the entity.
|
||||
type StrainMeta struct {
|
||||
CanAdd bool `json:"canAdd"`
|
||||
}
|
||||
|
||||
// SpeciesName returns a strain's species name.
|
||||
func (s StrainBase) SpeciesName() string {
|
||||
var species SpeciesBase
|
||||
|
|
|
@ -104,11 +104,6 @@ type UserValidation struct {
|
|||
// Users are multiple user entities.
|
||||
type Users []*User
|
||||
|
||||
// UserMeta stashes some metadata related to the entity.
|
||||
type UserMeta struct {
|
||||
CanAdd bool `json:"canAdd"`
|
||||
}
|
||||
|
||||
// DbAuthenticate authenticates a user.
|
||||
// For thermokarst/jwt: authentication callback
|
||||
func DbAuthenticate(email string, password string) error {
|
||||
|
|
Reference in a new issue