12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- package models
- import (
- "zhiyuan/pkg/db"
- "github.com/gin-gonic/gin"
- )
- type WorkQualityAcceptItem struct {
- ID int64 `json:"id" prop:"add:false"`
- QualityAcceptId int64 `json:"quality_accept_id" type:"int" prop:"" search:"="`
- Content string `json:"content" label:"内容" type:"string" prop:"add edit" search:"like"`
- Photograph string `json:"photograph" label:"拍照标准" type:"string" prop:"edit" search:"like"`
- Pictures string `json:"pictures" label:"拍照标准" type:"string" prop:"edit"`
- Days int64 `json:"days" label:"整改时间" type:"int" prop:"edit" default:"0"`
- State int64 `json:"state" label:"状态" type:"int" prop:"edit" default:"0"`
- OrderAt int64 `json:"order_at" prop:"add:false select:false"`
- DeletedAt int64 `json:"deleted_at" prop:"add:false select:false"`
- CreatedAt int64 `json:"created_at" prop:"add:false select:false"`
- UpdatedAt int64 `json:"updated_at" prop:"add:false select:false"`
- db.BaseModel
- }
- func (WorkQualityAcceptItem) TableName() string {
- return "zy_work_quality_accept_item"
- }
- func (WorkQualityAcceptItem) ListPrivilege(c *gin.Context, data map[string]interface{}, s *db.Select) bool {
- return true
- }
- func (WorkQualityAcceptItem) OnePrivilege(c *gin.Context, id int64) bool {
- return true
- }
- func (WorkQualityAcceptItem) AddPrivilege(c *gin.Context, data map[string]interface{}, post map[string]interface{}) error {
- return nil
- }
- func (WorkQualityAcceptItem) EditPrivilege(c *gin.Context, id int64, data map[string]interface{}, post map[string]interface{}) error {
- return nil
- }
- func (WorkQualityAcceptItem) DelPrivilege(c *gin.Context, id int64) error {
- return nil
- }
- func (WorkQualityAcceptItem) OrderField() string {
- return "order_at"
- }
- func (WorkQualityAcceptItem) Page() bool {
- return false
- }
- func (WorkQualityAcceptItem) Count() bool {
- return true
- }
|