package dao const ( TaskTimeMonth = 1 //为月 TaskTimeQuarter = 2 //为季度 TaskTimeHalfYear = 3 //为半年 TaskTimeYear = 4 //为一年 ) type TaskCreate struct { Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"` Type int32 `gorm:"column:type;type:tinyint(4) unsigned;default:0;comment:1、为销售,2为销售人;NOT NULL" json:"type"` Time int32 `gorm:"column:time;type:tinyint(4) unsigned;default:0;comment:时间,1为月,2为季度,3为半年,4为一年" json:"time"` Province int64 `gorm:"column:province;type:int(11);default:0;comment:省;NOT NULL" json:"province"` ProvinceName string `gorm:"column:province_name;type:varchar(100);comment:省名" json:"province_name"` ProductId int64 `json:"product_id" gorm:"product_id"` // 产品ID Task int32 `gorm:"column:task;type:int(11) unsigned;default:0;comment:任务 盒数" json:"task"` Award float64 `gorm:"column:award;type:decimal(10,2);comment:奖励金额/盒" json:"award"` AdminId int64 `gorm:"column:admin_id;type:int(11)" json:"admin_id"` AdminName string `gorm:"column:admin_name;type:varchar(255)" json:"admin_name"` } type TaskInfo struct { Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"` Type int32 `gorm:"column:type;type:tinyint(4) unsigned;default:0;comment:1、为销售,2为销售人;NOT NULL" json:"type"` Time int32 `gorm:"column:time;type:tinyint(4) unsigned;default:0;comment:时间,1为月,2为季度,3为半年,4为一年" json:"time"` Province int `gorm:"column:province;type:int(11);default:0;comment:省;NOT NULL" json:"province"` ProvinceName string `gorm:"column:province_name;type:varchar(100);comment:省名" json:"province_name"` ProductId int64 `json:"product_id" gorm:"product_id"` // 产品ID ProductName string `gorm:"-" json:"product_name"` Task int32 `gorm:"column:task;type:int(11) unsigned;default:0;comment:任务 盒数" json:"task"` Award float64 `gorm:"column:award;type:decimal(10,2);comment:奖励金额/盒" json:"award"` AdminId int64 `gorm:"column:admin_id;type:int(11)" json:"admin_id"` AdminName string `gorm:"column:admin_name;type:varchar(255)" json:"admin_name"` Reason string `gorm:"column:reason;type:varchar(255);comment:禁用原因" json:"reason"` Status int32 `gorm:"column:status;type:tinyint(1);default:1;comment:状态,1为正常,2为禁用;NOT NULL" json:"status"` } type TaskStatus struct { Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT;comment:ID" json:"id"` Type int32 `gorm:"column:type;type:tinyint(4) unsigned;default:0;comment:1、为销售,2为销售人;NOT NULL" json:"type"` Time int32 `gorm:"column:time;type:tinyint(4) unsigned;default:0;comment:时间,1为月,2为季度,3为半年,4为一年" json:"time"` Province int64 `gorm:"column:province;type:int(11);default:0;comment:省;NOT NULL" json:"province"` Reason string `gorm:"column:reason;type:varchar(255);comment:禁用原因" json:"reason"` Status int32 `gorm:"column:status;type:tinyint(1);default:1;comment:状态,1为正常,2为禁用;NOT NULL" json:"status"` AdminId int64 `gorm:"column:admin_id;type:int(11)" json:"admin_id"` AdminName string `gorm:"column:admin_name;type:varchar(255)" json:"admin_name"` }