Documentation ¶
Overview ¶
Code generated by protoc-gen-gomeet-service. DO NOT EDIT. source: pb/profile.proto
Index ¶
- func DeleteDevicePhysically(db *gorm.DB, sUuid string) error
- func MigrateSchema(dsn string) error
- type Profile
- func CreateProfile(db *gorm.DB, gender uint16, email, name, birthday string) (*Profile, error)
- func DeleteProfileLogically(db *gorm.DB, sUuid string) (*Profile, error)
- func FindProfileByUUID(db *gorm.DB, sUuid string) (*Profile, error)
- func ListProfiles(db *gorm.DB, offset uint, limit uint, order string, ...) ([]Profile, uint, bool, error)
- func UpdateProfile(db *gorm.DB, sUuid string, gender uint16, email, name, birthday string) (*Profile, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteDevicePhysically ¶
DeleteDevicePhysically performs the physical deletion of the device with the specified ID.
func MigrateSchema ¶
Types ¶
type Profile ¶
type Profile struct { UUID uuid.UUID `gorm:"primary_key;type:char(36);not null"` Gender uint16 Email string `gorm:"type:varchar(100);unique_index"` Name string `gorm:"size:255"` Birthday time.Time `gorm:"type:date;"` CreatedAt time.Time UpdatedAt time.Time DeletedAt *time.Time `sql:"index"` }
Profile is the GORM model definition.
func CreateProfile ¶
CreateDevice inserts a new profile in the table.
func DeleteProfileLogically ¶
DeleteProfileLogically performs the logical deletion of the profile with the specified ID.
func FindProfileByUUID ¶
FindProfileByUUID returns the existing profile with the specified UUID.
func ListProfiles ¶
func ListProfiles(db *gorm.DB, offset uint, limit uint, order string, criteria map[string]interface{}, excludeSoftDeleted bool, softDeletedOnly bool) ([]Profile, uint, bool, error)
ListProfiles returns a list of profiles matching a set of criteria.
Click to show internal directories.
Click to hide internal directories.