client.go 351 B

12345678910111213141516171819202122
  1. package models
  2. import (
  3. "time"
  4. )
  5. type Client struct {
  6. ID string `json:"id"`
  7. // TODO: Add Client fields
  8. CreatedAt time.Time `json:"created_at"`
  9. UpdatedAt time.Time `json:"updated_at"`
  10. }
  11. // GetID returns the user's ID
  12. func (c *Client) GetID() string {
  13. return c.ID
  14. }
  15. // SetID sets the user's ID
  16. func (c *Client) SetID(id string) {
  17. c.ID = id
  18. }