You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
package models
import ( "github.com/ouxuanserver/osmanthuswine/src/core" "time" )
const OrderEntryPersonTableName = TableNamePrefix + "order_entry_person"
type OrderEntryPerson struct { Id int64 `json:"id" xorm:"pk autoincr BIGINT(20)"` Name string `json:"name" xorm:"not null default('') comment('名字') VARCHAR(255)"` Account string `json:"account" xorm:"not null default('') comment('账号') VARCHAR(255)"` Password string `json:"password" xorm:"not null default('') comment('密码') VARCHAR(255)"` Pid int64 `json:"pid" xorm:"not null default 0 comment('主账号') VARCHAR(255)"` AreaId int64 `json:"area_id" xorm:"not null default 0 comment('地区id') BIGINT(20)"` AreaName string `json:"area_name" xorm:"-"` ActivityId int64 `json:"activity_id" xorm:"not null default 0 comment('主活动id') BIGINT(20)"` ActivityName string `json:"activity_name" xorm:"-"` Token string `json:"token" xorm:"-"` IsDelete bool `json:"-" xorm:"not null default(0) comment('软删除') TINYINT(1)"` CreatedAt time.Time `json:"-" xorm:"not null created comment('创建时间') DATETIME"` UpdatedAt time.Time `json:"-" xorm:"not null updated comment('更新时间') DATETIME"` }
func (t *OrderEntryPerson) TableName() string { return OrderEntryPersonTableName }
func (t *OrderEntryPerson) Auth(account, password, activityId interface{}) (bool, error) { return core.GetXormAuto().Where("is_delete=0 and account = ? and password = ? and activity_id = ?", account, password, activityId).Get(t) }
|