daily_statist_post.go 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. package models
  2. import (
  3. "zhiyuan/pkg/db"
  4. "github.com/gin-gonic/gin"
  5. )
  6. type DailyStatistPost struct {
  7. ID int64 `json:"id" prop:"add:false"`
  8. TypeId int64 `json:"typeId" label:"类型ID" type:"int" prop:"add edit" search:"="`
  9. Posts string `json:"posts" label:"岗位" type:"string" prop:"add edit" search:"like"`
  10. StartHour int64 `json:"starthour" label:"开始小时" type:"int" prop:"edit"`
  11. EndHour int64 `json:"endhour" label:"结束小时" type:"int" prop:"edit"`
  12. DeletedAt int64 `json:"deleted_at" prop:"add:false select:false"`
  13. CreatedAt int64 `json:"created_at" prop:"add:false select:false"`
  14. UpdatedAt int64 `json:"updated_at" prop:"add:false select:false"`
  15. db.BaseModel
  16. }
  17. func (DailyStatistPost) TableName() string {
  18. return "zy_daily_statist_post"
  19. }
  20. func (DailyStatistPost) ListPrivilege(c *gin.Context, data map[string]interface{}, s *db.Select) bool {
  21. return true
  22. }
  23. func (DailyStatistPost) OnePrivilege(c *gin.Context, id int64) bool {
  24. return true
  25. }
  26. func (DailyStatistPost) AddPrivilege(c *gin.Context, data map[string]interface{}, post map[string]interface{}) error {
  27. return nil
  28. }
  29. func (DailyStatistPost) EditPrivilege(c *gin.Context, id int64, data map[string]interface{}, post map[string]interface{}) error {
  30. return nil
  31. }
  32. func (DailyStatistPost) DelPrivilege(c *gin.Context, id int64) error {
  33. return nil
  34. }
  35. func (DailyStatistPost) Page() bool {
  36. return false
  37. }
  38. func (DailyStatistPost) Count() bool {
  39. return true
  40. }