| 1234567891011121314151617181920212223242526272829303132333435363738394041 | package modelconst (	OperationNameBind   = "绑定"	OperationNameUnbind = "解绑"	OperationNameUpdate = "编辑"	EventEnterBind      = "入场绑定"	EventDieBind        = "死亡解绑"	DefaultBind         = "正常绑定"	DefaultUnBind       = "正常解绑")type NeckRingBindLog struct {	Id             int64  `json:"id"`	PastureId      int64  `json:"pastureId"`	NeckRingNumber string `json:"neckRingNumber"`	CowId          int64  `json:"cowId"`	EarNumber      string `json:"earNumber"`	OperationName  string `json:"operationName"`	Remarks        string `json:"remarks"`	MessageId      int64  `json:"messageId"`	MessageName    string `json:"messageName"`	CreatedAt      int64  `json:"createdAt"`	UpdatedAt      int64  `json:"updatedAt"`}func (n *NeckRingBindLog) TableName() string {	return "neck_ring_bind_log"}func NewNeckRingBindLog(pastureId int64, number string, cowInfo *Cow, currUser *SystemUser, remarks string) *NeckRingBindLog {	return &NeckRingBindLog{		PastureId:      pastureId,		NeckRingNumber: number,		CowId:          cowInfo.Id,		EarNumber:      cowInfo.EarNumber,		MessageId:      currUser.Id,		MessageName:    currUser.Name,		Remarks:        remarks,	}}
 |