work_quality_accept_item.go 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. package models
  2. import (
  3. "zhiyuan/pkg/db"
  4. "github.com/gin-gonic/gin"
  5. )
  6. type WorkQualityAcceptItem struct {
  7. ID int64 `json:"id" prop:"add:false"`
  8. QualityAcceptId int64 `json:"quality_accept_id" type:"int" prop:"" search:"="`
  9. Name string `json:"name" label:"内容" type:"string" prop:"add edit" search:"like"`
  10. Content string `json:"content" label:"内容" type:"string" prop:"add edit" search:"like"`
  11. Photograph string `json:"photograph" label:"拍照标准" type:"string" prop:"edit" search:"like"`
  12. Pictures string `json:"pictures" label:"拍照标准" type:"string" prop:"edit"`
  13. Days int64 `json:"days" label:"整改时间" type:"int" prop:"edit" default:"0"`
  14. State int64 `json:"state" label:"状态" type:"int" prop:"edit" default:"0"`
  15. OrderAt int64 `json:"order_at" prop:"add:false select:false"`
  16. DeletedAt int64 `json:"deleted_at" prop:"add:false select:false"`
  17. CreatedAt int64 `json:"created_at" prop:"add:false select:false"`
  18. UpdatedAt int64 `json:"updated_at" prop:"add:false select:false"`
  19. db.BaseModel
  20. }
  21. func (WorkQualityAcceptItem) TableName() string {
  22. return "zy_work_quality_accept_item"
  23. }
  24. func (WorkQualityAcceptItem) ListPrivilege(c *gin.Context, data map[string]interface{}, s *db.Select) bool {
  25. return true
  26. }
  27. func (WorkQualityAcceptItem) OnePrivilege(c *gin.Context, id int64) bool {
  28. return true
  29. }
  30. func (WorkQualityAcceptItem) AddPrivilege(c *gin.Context, data map[string]interface{}, post map[string]interface{}) error {
  31. return nil
  32. }
  33. func (WorkQualityAcceptItem) EditPrivilege(c *gin.Context, id int64, data map[string]interface{}, post map[string]interface{}) error {
  34. return nil
  35. }
  36. func (WorkQualityAcceptItem) DelPrivilege(c *gin.Context, id int64) error {
  37. return nil
  38. }
  39. func (WorkQualityAcceptItem) OrderField() string {
  40. return "order_at"
  41. }
  42. func (WorkQualityAcceptItem) Page() bool {
  43. return false
  44. }
  45. func (WorkQualityAcceptItem) Count() bool {
  46. return true
  47. }