123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- package final
- import (
- "zhiyuan/pkg/db"
- "github.com/gin-gonic/gin"
- )
- type FinalSiteItem struct {
- ID int64 `json:"id" prop:"add:false"`
- TableId int64 `json:"table_id" label:"表" type:"int" prop:"add edit" search:"="`
- Name string `json:"name" label:"项目名称" type:"string" prop:"add edit" search:"like"`
- Unit string `json:"unit" label:"单位" type:"string" prop:"edit"`
- Price float64 `json:"price" label:"单价" type:"float" prop:"edit" default:"0"`
- Num float64 `json:"num" label:"数量" type:"float" prop:"edit" default:"0"`
- Remark string `json:"remark" label:"备注" type:"string" prop:"edit"`
- DeletedAt int64 `json:"deleted_at" prop:"add:false select:false"`
- CreatedAt int64 `json:"created_at" prop:"add:false"`
- UpdatedAt int64 `json:"updated_at" prop:"add:false"`
- db.BaseModel
- }
- func (FinalSiteItem) TableName() string {
- return "zy_final_site_item"
- }
- func (model FinalSiteItem) ListPrivilege(c *gin.Context, data map[string]interface{}, s *db.Select) bool {
- return true
- }
- func (FinalSiteItem) OnePrivilege(c *gin.Context, id int64) bool {
- return true
- }
- func (FinalSiteItem) AddPrivilege(c *gin.Context, data map[string]interface{}, post map[string]interface{}) error {
- return nil
- }
- func (FinalSiteItem) EditPrivilege(c *gin.Context, id int64, data map[string]interface{}, post map[string]interface{}) error {
- return nil
- }
- func (FinalSiteItem) DelPrivilege(c *gin.Context, id int64) error {
- return nil
- }
- func (FinalSiteItem) Page() bool {
- return false
- }
- func (FinalSiteItem) Count() bool {
- return true
- }
- func (model FinalSiteItem) LeftJoin(data map[string]interface{}, s *db.Select) []db.JoinModel {
- return []db.JoinModel{}
- }
|