You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

99 lines
3.1 KiB
Go

package Model
/**
* 发言记录类的描述
* @author miSter
* @email hdfs010@163.com
* @date no data
* @link <a href=http://www.philisense.com>北京飞利信电子技术有限公司</a>
*/
import (
"time"
"github.com/spf13/viper"
)
const (
TSpeakrecord_Id = "id" //记录id
TSpeakrecord_Sr_agendaid = "sr_agendaid" //议程id
TSpeakrecord_Sr_agendastaffid = "sr_agendastaffid" //会议人员id
TSpeakrecord_Sr_topicid = "sr_topicid" //议题id
TSpeakrecord_Sr_applytime = "sr_applytime" //开始申请时间
TSpeakrecord_Sr_starttime = "sr_starttime" //开始发言时间
TSpeakrecord_Sr_endtime = "sr_endtime" //结束发言时间
TSpeakrecord_Sr_aginspeak = "sr_aginspeak" //是否二次发言
TSpeakrecord_Sr_createtime = "sr_createtime" //创建时间
TSpeakrecord_Sr_remark = "sr_remark" //备注信息
TSpeakrecord_Sr_seatid = "sr_seatid" //坐席id
)
type TSpeakrecord struct {
Id string `gorm:"column:id;primary_key" json:"id"` //记录id
Sr_agendaid string `gorm:"column:sr_agendaid" json:"sr_agendaid"` //议程id
Sr_agendastaffid string `gorm:"column:sr_agendastaffid" json:"sr_agendastaffid"` //会议人员id
Sr_topicid string `gorm:"column:sr_topicid" json:"sr_topicid"` //议题id
Sr_applytime time.Time `gorm:"column:sr_applytime" json:"sr_applytime"` //开始申请时间
Sr_starttime time.Time `gorm:"column:sr_starttime" json:"sr_starttime"` //开始发言时间
Sr_endtime time.Time `gorm:"column:sr_endtime" json:"sr_endtime"` //结束发言时间
Sr_aginspeak int64 `gorm:"column:sr_aginspeak" json:"sr_aginspeak"` //是否二次发言
Sr_createtime time.Time `gorm:"column:sr_createtime" json:"sr_createtime"` //创建时间
Sr_remark string `gorm:"column:sr_remark" json:"sr_remark"` //备注信息
Sr_seatid string `gorm:"column:sr_seatid" json:"sr_seatid"` //坐席id
}
type AskPerson struct {
//人员信息
AgPerson *T_AgendaPerson
//是否是申请发言,显示打开话筒
IsApplySpeak bool
}
type SpeakingPerson struct {
//人员信息
AgPerson *T_AgendaPerson
//人员姓名
AgPName string
//剩余发言时间
AllowSpeakTime string
//
LimitSecend int
//允许发言秒数
SpeakSecond int
//超时秒数
OverTimeSecond int
//是否限时
ISLimit bool
//是否在大屏上
ShowOnScreen bool
//发言次数
SpeakTimes int
//申请发言时间
ApplyTime time.Time
//开始发言时间
SpeakStartTime time.Time
//结束发言时间
EndSpeakTime time.Time
OverTime time.Time
IsAllowStop bool
IsOverStop bool
OnStopSpeaking func(SPerson *SpeakingPerson)
}
func (TSpeakrecord) TableName() string {
tableName := "t_speakrecord"
if viper.GetString("database.dbtype") == "kingbase" || viper.GetString("database.dbtype") == "postgres" {
return viper.GetString("database.dbnames") + "." + tableName
}
return tableName
}