neck_ring_process.go 698 B

123456789101112131415161718192021222324
  1. package model
  2. type NeckRingProcess struct {
  3. Id int64 `json:"id"`
  4. HabitId int64 `json:"habitId"`
  5. NeckRingNumber string `json:"neckRingNumber"`
  6. ActiveDate string `json:"activeDate"`
  7. Frameid int32 `json:"frameid"`
  8. CreatedAt int64 `json:"createdAt"`
  9. UpdatedAt int64 `json:"updatedAt"`
  10. }
  11. func (n *NeckRingProcess) TableName() string {
  12. return "neck_ring_process"
  13. }
  14. func NewNeckRingProcess(neckActiveHabit *NeckActiveHabit) *NeckRingProcess {
  15. return &NeckRingProcess{
  16. HabitId: neckActiveHabit.Id,
  17. NeckRingNumber: neckActiveHabit.NeckRingNumber,
  18. ActiveDate: neckActiveHabit.HeatDate,
  19. Frameid: neckActiveHabit.Frameid,
  20. }
  21. }