mirror of
https://github.com/hay-kot/homebox.git
synced 2025-07-27 21:00:28 +00:00
feat: items-editor (#5)
* format readme * update logo * format html * add logo to docs * repository for document and document tokens * add attachments type and repository * autogenerate types via scripts * use autogenerated types * attachment type updates * add insured and quantity fields for items * implement HasID interface for entities * implement label updates for items * implement service update method * WIP item update client side actions * check err on attachment * finish types for basic items editor * remove unused var * house keeping
This commit is contained in:
parent
fbc364dcd2
commit
95ab14b866
125 changed files with 15626 additions and 1791 deletions
45
backend/ent/has_id.go
Normal file
45
backend/ent/has_id.go
Normal file
|
@ -0,0 +1,45 @@
|
|||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package ent
|
||||
|
||||
import "github.com/google/uuid"
|
||||
|
||||
func (a *Attachment) GetID() uuid.UUID {
|
||||
return a.ID
|
||||
}
|
||||
|
||||
func (at *AuthTokens) GetID() uuid.UUID {
|
||||
return at.ID
|
||||
}
|
||||
|
||||
func (d *Document) GetID() uuid.UUID {
|
||||
return d.ID
|
||||
}
|
||||
|
||||
func (dt *DocumentToken) GetID() uuid.UUID {
|
||||
return dt.ID
|
||||
}
|
||||
|
||||
func (gr *Group) GetID() uuid.UUID {
|
||||
return gr.ID
|
||||
}
|
||||
|
||||
func (i *Item) GetID() uuid.UUID {
|
||||
return i.ID
|
||||
}
|
||||
|
||||
func (_if *ItemField) GetID() uuid.UUID {
|
||||
return _if.ID
|
||||
}
|
||||
|
||||
func (l *Label) GetID() uuid.UUID {
|
||||
return l.ID
|
||||
}
|
||||
|
||||
func (l *Location) GetID() uuid.UUID {
|
||||
return l.ID
|
||||
}
|
||||
|
||||
func (u *User) GetID() uuid.UUID {
|
||||
return u.ID
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue