1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- package plan
- import (
- "zhiyuan/pkg/db"
- "github.com/gin-gonic/gin"
- )
- type PlanTypes struct {
- ID int64 `json:"id" prop:"add:false"`
- Name string `json:"name" label:"名称" type:"string" prop:"add edit" search:"like"`
- TypeId int64 `json:"typeId" label:"类型ID" type:"int" prop:"add" search:"="`
- 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 (PlanTypes) TableName() string {
- return "zy_plan_types"
- }
- func (PlanTypes) OrderField() string {
- return "order_at"
- }
- func (PlanTypes) ListPrivilege(c *gin.Context, data map[string]interface{}, s *db.Select) bool {
- return true
- }
- func (PlanTypes) OnePrivilege(c *gin.Context, id int64) bool {
- return true
- }
- func (PlanTypes) AddPrivilege(c *gin.Context, data map[string]interface{}, post map[string]interface{}) error {
- return nil
- }
- func (PlanTypes) EditPrivilege(c *gin.Context, id int64, data map[string]interface{}, post map[string]interface{}) error {
- return nil
- }
- func (PlanTypes) DelPrivilege(c *gin.Context, id int64) error {
- return nil
- }
- func (PlanTypes) Page() bool {
- return false
- }
- func (PlanTypes) Count() bool {
- return true
- }
|