work_quality_accept_item.go 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. Content string `json:"content" label:"内容" type:"string" prop:"add edit" search:"like"`
  10. Photograph string `json:"photograph" label:"拍照标准" type:"string" prop:"edit" search:"like"`
  11. Pictures string `json:"pictures" label:"拍照标准" type:"string" prop:"edit"`
  12. Days int64 `json:"days" label:"整改时间" type:"int" prop:"edit" default:"0"`
  13. State int64 `json:"state" label:"状态" type:"int" prop:"edit" default:"0"`
  14. OrderAt int64 `json:"order_at" prop:"add:false select:false"`
  15. DeletedAt int64 `json:"deleted_at" prop:"add:false select:false"`
  16. CreatedAt int64 `json:"created_at" prop:"add:false select:false"`
  17. UpdatedAt int64 `json:"updated_at" prop:"add:false select:false"`
  18. db.BaseModel
  19. }
  20. func (WorkQualityAcceptItem) TableName() string {
  21. return "zy_work_quality_accept_item"
  22. }
  23. func (WorkQualityAcceptItem) ListPrivilege(c *gin.Context, data map[string]interface{}, s *db.Select) bool {
  24. return true
  25. }
  26. func (WorkQualityAcceptItem) OnePrivilege(c *gin.Context, id int64) bool {
  27. return true
  28. }
  29. func (WorkQualityAcceptItem) AddPrivilege(c *gin.Context, data map[string]interface{}, post map[string]interface{}) error {
  30. return nil
  31. }
  32. func (WorkQualityAcceptItem) EditPrivilege(c *gin.Context, id int64, data map[string]interface{}, post map[string]interface{}) error {
  33. return nil
  34. }
  35. func (WorkQualityAcceptItem) DelPrivilege(c *gin.Context, id int64) error {
  36. return nil
  37. }
  38. func (WorkQualityAcceptItem) OrderField() string {
  39. return "order_at"
  40. }
  41. func (WorkQualityAcceptItem) Page() bool {
  42. return false
  43. }
  44. func (WorkQualityAcceptItem) Count() bool {
  45. return true
  46. }