daily_statist_type.go 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. package models
  2. import (
  3. "zhiyuan/pkg/db"
  4. "github.com/gin-gonic/gin"
  5. )
  6. type DailyStatistType struct {
  7. ID int64 `json:"id" prop:"add:false"`
  8. Name string `json:"name" label:"名称" type:"string" prop:"add edit" search:"like"`
  9. Types string `json:"types" label:"类型" type:"string" prop:"add edit" search:"like"`
  10. Statist int64 `json:"statist" label:"统计" type:"int" prop:"add edit"`
  11. DeletedAt int64 `json:"deleted_at" prop:"add:false select:false"`
  12. CreatedAt int64 `json:"created_at" prop:"add:false select:false"`
  13. UpdatedAt int64 `json:"updated_at" prop:"add:false select:false"`
  14. db.BaseModel
  15. }
  16. func (DailyStatistType) TableName() string {
  17. return "zy_daily_statist_type"
  18. }
  19. func (DailyStatistType) ListPrivilege(c *gin.Context, data map[string]interface{}, s *db.Select) bool {
  20. return true
  21. }
  22. func (DailyStatistType) OnePrivilege(c *gin.Context, id int64) bool {
  23. return true
  24. }
  25. func (DailyStatistType) AddPrivilege(c *gin.Context, data map[string]interface{}, post map[string]interface{}) error {
  26. return nil
  27. }
  28. func (DailyStatistType) EditPrivilege(c *gin.Context, id int64, data map[string]interface{}, post map[string]interface{}) error {
  29. return nil
  30. }
  31. func (DailyStatistType) DelPrivilege(c *gin.Context, id int64) error {
  32. return nil
  33. }
  34. func (DailyStatistType) Page() bool {
  35. return false
  36. }
  37. func (DailyStatistType) Count() bool {
  38. return true
  39. }