user.go 305 B

12345678910111213141516171819
  1. package models
  2. // User represents a user in the system
  3. type User struct {
  4. ID string
  5. Username string
  6. Email string
  7. // Other user fields
  8. }
  9. // GetID returns the user's ID
  10. func (u *User) GetID() string {
  11. return u.ID
  12. }
  13. // SetID sets the user's ID
  14. func (u *User) SetID(id string) {
  15. u.ID = id
  16. }