| 12345678910111213141516171819202122232425262728293031323334353637 | 
							- package model
 
- const (
 
- 	OperationNameBind   = "绑定"
 
- 	OperationNameUnbind = "解绑"
 
- 	OperationNameUpdate = "编辑"
 
- )
 
- 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,
 
- 	}
 
- }
 
 
  |