ソースを参照

Merge branch 'feature/tmr-group' of baishaojie/tmrgo into develop

xuyiping 1 年間 前
コミット
77def2e005
1 ファイル変更1 行追加1 行削除
  1. 1 1
      models/feed_template.go

+ 1 - 1
models/feed_template.go

@@ -10,7 +10,7 @@ import (
 )
 
 type FeedTemplate struct {
-	Id           int64   `xorm:"id" json:"id"`
+	Id           int64   `xorm:"AUTOINCR 'id'" json:"id"`
 	PastureId    int64   `xorm:"pastureid" json:"pasture_id"`
 	TCode        string  `xorm:"tcode" json:"t_code"`
 	TName        string  `xorm:"tname" json:"t_name"`