card.go 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. package channel
  2. import (
  3. "go-common/app/admin/main/feed/model/common"
  4. )
  5. var (
  6. //NotDelete not delete
  7. NotDelete uint8
  8. //Delete delete
  9. Delete uint8 = 1
  10. //LogBusPgcsRcmd log business id
  11. LogBusPgcsRcmd = 203
  12. //LogBusRcmdNew log business id
  13. LogBusRcmdNew = 204
  14. //ActUpCsPgcRcmd log
  15. ActUpCsPgcRcmd = "ActUpCsPgcRcmd"
  16. //ActUpCsRcmdNew log
  17. ActUpCsRcmdNew = "ActUpCsRcmdNew"
  18. //ActDelCsPgcRcmd log
  19. ActDelCsPgcRcmd = "ActDelCsPgcRcmd"
  20. //ActDelCsRcmdNew log
  21. ActDelCsRcmdNew = "ActDelCsRcmdNew"
  22. //ActAddCsPgcRcmd log
  23. ActAddCsPgcRcmd = "ActAddCsPgcRcmd"
  24. //ActAddCsRcmdNew log
  25. ActAddCsRcmdNew = "ActAddCsRcmdNew"
  26. )
  27. //AddCardSetup 复合卡片 需要首先单独创建 然后再在频道首页创建
  28. type AddCardSetup struct {
  29. Type string `form:"type" validate:"required"`
  30. Value string `form:"value"`
  31. Title string `form:"title"`
  32. LongTitle string `form:"longtitle"`
  33. Content string `form:"content" validate:"required"`
  34. UID int64 `gorm:"column:uid"`
  35. Person string
  36. }
  37. //UpdateCardSetup 复合卡片 需要首先单独创建 然后再在频道首页创建
  38. type UpdateCardSetup struct {
  39. ID int `form:"id" validate:"required"`
  40. Type string `form:"type" validate:"required"`
  41. Value string `form:"value"`
  42. Title string `form:"title" validate:"required"`
  43. LongTitle string `form:"longtitle"`
  44. Content string `form:"content" validate:"required"`
  45. }
  46. //Setup 复合卡片 需要首先单独创建 然后再在频道首页创建
  47. type Setup struct {
  48. ID int `json:"id"`
  49. Type string `json:"type"`
  50. Value string `json:"value"`
  51. Title string `json:"title"`
  52. LongTitle string `json:"longtitle"`
  53. Content string `json:"content"`
  54. Deleted int `json:"deleted"`
  55. Person string `json:"person"`
  56. }
  57. //SetupPager return values
  58. type SetupPager struct {
  59. Item []*Setup `json:"item"`
  60. Page common.Page `json:"page"`
  61. }
  62. // TableName DarkPubLog dark word publish log
  63. func (a Setup) TableName() string {
  64. return "card_set"
  65. }
  66. // TableName DarkPubLog dark word publish log
  67. func (a AddCardSetup) TableName() string {
  68. return "card_set"
  69. }