You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1.0 KiB

  1. package model
  2. import "errors"
  3. // 初始版本自动化代码工具
  4. type AutoCodeStruct struct {
  5. StructName string `json:"structName"`
  6. TableName string `json:"tableName"`
  7. PackageName string `json:"packageName"`
  8. Abbreviation string `json:"abbreviation"`
  9. Description string `json:"description"`
  10. AutoCreateApiToSql bool `json:"autoCreateApiToSql"`
  11. AutoMoveFile bool `json:"autoMoveFile"`
  12. Fields []Field `json:"fields"`
  13. }
  14. type Field struct {
  15. FieldName string `json:"fieldName"`
  16. FieldDesc string `json:"fieldDesc"`
  17. FieldType string `json:"fieldType"`
  18. FieldJson string `json:"fieldJson"`
  19. DataType string `json:"dataType"`
  20. DataTypeLong string `json:"dataTypeLong"`
  21. Comment string `json:"comment"`
  22. ColumnName string `json:"columnName"`
  23. FieldSearchType string `json:"fieldSearchType"`
  24. DictType string `json:"dictType"`
  25. }
  26. var AutoMoveErr error = errors.New("创建代码成功并移动文件成功")