19 lines
464 B
Go
19 lines
464 B
Go
package data
|
|
|
|
type Ad struct {
|
|
Id int `json:"id"` //ID(索引)
|
|
FunctionType int `json:"function_type"` //功能类型
|
|
FunctionArg1 int `json:"function_arg1"` //功能参数1
|
|
FunctionArg2 int `json:"function_arg2"` //功能参数2
|
|
FunctionArg3 int `json:"function_arg3"` //功能参数3
|
|
DailyLimit int `json:"daily_limit"` //每日次数限制
|
|
}
|
|
|
|
func (data *Ad) id() int {
|
|
return data.Id
|
|
}
|
|
|
|
type AdTable struct {
|
|
table[int, *Ad]
|
|
}
|