import 'dart:io';
import 'package:path/path.dart' as path;

import 'model/class.dart';
import 'model/field.dart';
main() {
  // Class clazz1 = Class(
  //   name: 'TaskResult',
  //   fields: [
  //     Field(name: 'cost', type: 'int'),
  //     Field(name: 'taskName', type: 'String'),
  //     Field(name: 'count', type: 'int'),
  //     Field(name: 'taskCode', type: 'String'),
  //     Field(name: 'taskInfo', type: 'String', nullable: true, isRequired: false),
  //   ],
  // );

  // print(clazz1.buildClass());

  // Class clazz2 = Class(
  //   name: 'User',
  //   fields: [
  //     Field(name: 'age', type: int),
  //     Field(name: 'username', type: String),
  //     Field(name: 'roleId', type: int),
  //     Field(name: 'info', type: String,nullable: true),
  //     Field(name: 'height', type: double, nullable: true, isRequired: false),
  //   ],
  // );
  // clazz1.write2File(Directory(r'E:\Projects\Flutter\Github\skeleton\lib\chatgpt\generator'));
  // clazz2.write2File(Directory(r'E:\Projects\Flutter\Github\skeleton\lib\chatgpt\generator'));
}




