repo_type_info.go 500 B

123456789101112
  1. package viewmodel
  2. type RepoTypeInfo struct {
  3. RepoTypeId int64 `json:"repoTypeId" xorm:"'repo_type_id' bigint pk comment('主键ID') "`
  4. RepoTypeTitle string `json:"repoTypeTitle" xorm:"'repo_type_title' varchar(50) comment('模型名称') "`
  5. RepoTypeDesc string `json:"repoTypeDesc" xorm:"'repo_type_desc' varchar(255) comment('模型名称') "`
  6. }
  7. func (t *RepoTypeInfo) TableName() string {
  8. return "repo_type"
  9. }