golang-yitisheng-server/server/modules/yx/entity/yx_volunteer.go

23 lines
1.2 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package entity
import "time"
// YxVolunteer 志愿表实体
type YxVolunteer struct {
ID string `gorm:"column:id;primaryKey" json:"id"`
VolunteerName string `gorm:"column:volunteer_name" json:"volunteerName"` // 志愿单名称
ScoreID string `gorm:"column:score_id" json:"scoreId"` // 使用成绩id
CreateType string `gorm:"column:create_type;default:1" json:"createType"` // 生成类型(1.手动生成,2.智能生成)
State string `gorm:"column:state;default:0" json:"state"` // 志愿单状态(0-否1.正在使用2-历史)
CreateBy string `gorm:"column:create_by" json:"createBy"` // 创建人
CreateTime time.Time `gorm:"column:create_time" json:"createTime"` // 创建日期
UpdateBy string `gorm:"column:update_by" json:"updateBy"` // 更新人
UpdateTime time.Time `gorm:"column:update_time" json:"updateTime"` // 更新日期
SysOrgCode string `gorm:"column:sys_org_code" json:"sysOrgCode"` // 所属部门
}
// TableName 指定表名
func (YxVolunteer) TableName() string {
return "yx_volunteer"
}