deliver_msg.go 639 B

12345678910111213141516171819
  1. package entity
  2. import "gopkg.in/guregu/null.v3"
  3. type DeliverMsg struct {
  4. Id int `db:"id" json:"id"`
  5. DeliverUserId int `db:"deliver_user_id" json:"deliver_user_id"`
  6. Title string `db:"title" json:"title"`
  7. Content string `db:"content" json:"content"`
  8. IsRead null.String `db:"is_read" json:"is_read"`
  9. CreatedAt string `db:"created_at" json:"created_at"`
  10. }
  11. type DeliverChatMsg struct {
  12. From int `db:"fu" json:"from"`
  13. To int `db:"tu" json:"to"`
  14. Message string `db:"message" json:"message"`
  15. CreatedAt string `db:"created_at" json:"created_at"`
  16. }