zd-refer.go 688 字节
Newer Older
aaronchen2k2k's avatar
aaronchen2k2k 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
package model

import (
	consts "github.com/easysoft/zendata/internal/pkg/const"
)

type ZdRefer struct {
	BaseModel

	OwnerType string `json:"ownerType"` // field or instances
	OwnerID   uint   `json:"ownerID"`
	Type      string `json:"type"`

	Value string `json:"value"`
	File  string `json:"file"`
	Sheet string `json:"sheet"`

	ColName   string `json:"colName"`
	ColIndex  int    `json:"colIndex"`
	Condition string `json:"condition"`
	Count     int    `json:"count"`
	CountTag  string `json:"countTag"`
	Step      int    `json:"step"`
	Rand      bool   `json:"rand"`
	HasTitle  bool   `json:"hasTitle"`
}

func (*ZdRefer) TableName() string {
	return consts.TablePrefix + "refer"
}