Documentation ¶
Index ¶
- Constants
- type Invest_Contract
- type Invest_ContractDao
- func (this *Invest_ContractDao) DeleteAllRong360(startTime time.Time)
- func (this *Invest_ContractDao) ListAll() []Invest_Contract
- func (this *Invest_ContractDao) QueryByName(name string) int64
- func (this *Invest_ContractDao) Save(i *Invest_Contract)
- func (this *Invest_ContractDao) SaveOrUpdate(i *Invest_Contract)
- func (this *Invest_ContractDao) Update(i *Invest_Contract)
- type Lov
- type LovDao
- type Master
- type MasterDao
- type Topic
- type TopicDao
Constants ¶
View Source
const Duration_Type_Day = 0
View Source
const Duration_Type_Month = 2
View Source
const Duration_Type_Week = 1
View Source
const Duration_Type_Year = 3
View Source
const For_Register = 1
View Source
const TableName = "fin_p2p_lov"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Invest_Contract ¶
type Invest_Contract struct { Id int64 Platform_id string Name string Master_id int64 Description string Amount_min int Amount_max int Duration_min int Duration_max int Duration_type int For_register int Rate float64 Early_terminate int Risk_rank int Master *Master `orm:"-"` //不对Master对象orm映射,不然会有Master_id重复的错误 Product_url string Disp_order int Create_time time.Time `orm:type(TIMESTAMP)` Update_time time.Time `orm:type(TIMESTAMP)` }
func (*Invest_Contract) TableName ¶
func (this *Invest_Contract) TableName() string
type Invest_ContractDao ¶
type Invest_ContractDao struct { }
func (*Invest_ContractDao) DeleteAllRong360 ¶
func (this *Invest_ContractDao) DeleteAllRong360(startTime time.Time)
执行rong360task时,删除任务执行前的数据
func (*Invest_ContractDao) ListAll ¶
func (this *Invest_ContractDao) ListAll() []Invest_Contract
查询所有产品,目前只显示每个平台rate最高的
func (*Invest_ContractDao) QueryByName ¶
func (this *Invest_ContractDao) QueryByName(name string) int64
func (*Invest_ContractDao) Save ¶
func (this *Invest_ContractDao) Save(i *Invest_Contract)
时间类型的值,如果使用o.Insert o.Update方法,go会自动转成UTC时间保存到数据库
func (*Invest_ContractDao) SaveOrUpdate ¶
func (this *Invest_ContractDao) SaveOrUpdate(i *Invest_Contract)
func (*Invest_ContractDao) Update ¶
func (this *Invest_ContractDao) Update(i *Invest_Contract)
type Master ¶
type MasterDao ¶
type MasterDao struct { }
func (*MasterDao) QueryByName ¶
func (*MasterDao) SaveOrUpdate ¶
Click to show internal directories.
Click to hide internal directories.