feat(model): 在动物状态模型中添加解释字段
- 在 AnmStatus 结构体中添加 Explain 字段,用于解释在校状态的含义 - 新增 Explain 结构体,包含 explain_zh 字段用于中文解释 - 未来可扩展为包含英文解释等更多信息
This commit is contained in:
		
							parent
							
								
									c1c6ed5d00
								
							
						
					
					
						commit
						0ff364b677
					
				@ -14,6 +14,7 @@ type AnmSterilzation struct { // TEST How to use BriefModel, the dif between Com
 | 
			
		||||
 | 
			
		||||
type AnmStatus struct {
 | 
			
		||||
	BriefModel
 | 
			
		||||
	*Explain // “在校状态” 这个处理命名方式比较抽象,需要给 AI 解释一下实际含义。
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type AnmGender struct {
 | 
			
		||||
 | 
			
		||||
@ -30,6 +30,11 @@ type Color struct {
 | 
			
		||||
	ColorBackground string `json:"color_background" gorm:"type:char(10)"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type Explain struct {
 | 
			
		||||
	ExplainZh string `json:"explain_zh" gorm:"type:varchar(255)"`
 | 
			
		||||
	// maybe extend to En
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type DeletedAt struct {
 | 
			
		||||
	DeletedAt *time.Time            `json:"deleted_at" gorm:"defalt:NULL"`
 | 
			
		||||
	IsDel     soft_delete.DeletedAt `gorm:"softDelete:flag,DeletedAtField:DeletedAt;default:0"`
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user