1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- package models
- import (
- "zhiyuan/pkg/db"
- "github.com/gin-gonic/gin"
- )
- type DailyStatistType struct {
- ID int64 `json:"id" prop:"add:false"`
- Name string `json:"name" label:"名称" type:"string" prop:"add edit" search:"like"`
- Types string `json:"types" label:"类型" type:"string" prop:"add edit" search:"like"`
- Statist int64 `json:"statist" label:"统计" type:"int" prop:"add edit"`
- 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 (DailyStatistType) TableName() string {
- return "zy_daily_statist_type"
- }
- func (DailyStatistType) ListPrivilege(c *gin.Context, data map[string]interface{}, s *db.Select) bool {
- return true
- }
- func (DailyStatistType) OnePrivilege(c *gin.Context, id int64) bool {
- return true
- }
- func (DailyStatistType) AddPrivilege(c *gin.Context, data map[string]interface{}, post map[string]interface{}) error {
- return nil
- }
- func (DailyStatistType) EditPrivilege(c *gin.Context, id int64, data map[string]interface{}, post map[string]interface{}) error {
- return nil
- }
- func (DailyStatistType) DelPrivilege(c *gin.Context, id int64) error {
- return nil
- }
- func (DailyStatistType) Page() bool {
- return false
- }
- func (DailyStatistType) Count() bool {
- return true
- }
|