Minor cleanup
This commit is contained in:
parent
f948fdaadb
commit
db1e089c8c
3 changed files with 1 additions and 4 deletions
|
@ -40,7 +40,6 @@ type MeasurementBase struct {
|
|||
UpdatedBy int64 `db:"updated_by" json:"updatedBy"`
|
||||
}
|
||||
|
||||
// Measurement & MeasurementJSON(s) are what ember expects to see
|
||||
type Measurement struct {
|
||||
*MeasurementBase
|
||||
TextMeasurementType NullString `db:"text_measurement_type_name" json:"textMeasurementType"`
|
||||
|
|
|
@ -35,7 +35,6 @@ func (s *SpeciesBase) PreUpdate(e modl.SqlExecutor) error {
|
|||
|
||||
type SpeciesService struct{}
|
||||
|
||||
// SpeciesBase is what the DB expects to see for inserts/updates
|
||||
type SpeciesBase struct {
|
||||
Id int64 `db:"id" json:"id"`
|
||||
GenusID int64 `db:"genus_id" json:"-"`
|
||||
|
|
|
@ -35,7 +35,6 @@ func (s *StrainBase) PreUpdate(e modl.SqlExecutor) error {
|
|||
|
||||
type StrainService struct{}
|
||||
|
||||
// StrainBase is what the DB expects to see for inserts/updates
|
||||
type StrainBase struct {
|
||||
Id int64 `db:"id" json:"id"`
|
||||
SpeciesId int64 `db:"species_id" json:"species"`
|
||||
|
@ -59,7 +58,7 @@ type Strain struct {
|
|||
Measurements NullSliceInt64 `db:"measurements" json:"measurements"`
|
||||
TotalMeasurements int64 `db:"total_measurements" json:"totalMeasurements"`
|
||||
SortOrder int64 `db:"sort_order" json:"sortOrder"`
|
||||
CanEdit bool `db:"can_edit" json:"canEdit"`
|
||||
CanEdit bool `db:"-" json:"canEdit"`
|
||||
}
|
||||
|
||||
type Strains []*Strain
|
||||
|
|
Reference in a new issue