Skip to content

v1.6.0

Choose a tag to compare

@seakee seakee released this 19 Aug 11:56
· 51 commits to main since this release

🚀 New Features

Code Generation Enhancements

  • Repository Generation : Added automatic generation of repository interfaces and implementations with CRUD operations
  • Enhanced Model Generation : Improved field property parsing with support for unsigned types, nullable fields, auto increment, default values, and comments
  • Smart Update Methods : Generated flexible update methods with method chaining support
  • Pagination & Sorting : Added built-in pagination and sorting methods for generated models
  • Remove Method : Implemented permanent record deletion using GORM's Unscoped functionality

Authentication System

  • App Repository Interface : Implemented comprehensive AppRepo interface with Create, Update, Delete, GetByID, and List methods
  • Enhanced Error Handling : Improved error handling with more specific error messages
  • Query Conditions : Added support for flexible query conditions and method chaining

Background Processing

  • Worker Package : Implemented new worker package for background task processing
  • Task Handler : Added comprehensive task handler with job processing capabilities

Documentation

  • Scheduling Framework Guide : Added comprehensive usage guide for distributed job scheduling framework
  • Updated README : Enhanced project documentation with current directory layout and component descriptions
  • Code Generation Docs : Updated documentation with new features and usage examples

🐛 Bug Fixes

SQL Field Parsing

  • Table-Level Configuration Filtering : Fixed issue where table-level configurations (ENGINE, DEFAULT CHARSET, COLLATE, COMMENT) were incorrectly parsed as model fields
  • Field Parsing Logic : Enhanced SQL parsing logic to properly distinguish between table-level and field-level configurations
  • GORM Tag Generation : Improved GORM tag generation accuracy based on actual field properties

🔧 Improvements

Performance Optimizations

  • TraceID Generation : Optimized TraceID generation performance for better request tracing
  • Logger Upgrade : Updated logger dependency for improved logging performance

Development Experience

  • Debug Mode Logging : Automatically set log level to debug in development mode for better debugging experience
  • Docker Improvements : Updated Dockerfile to install git for dependency downloading
  • Code Quality : Refactored variable names for better code readability

📦 Dependencies

  • Updated logger dependency
  • Enhanced Docker build process with git support

🧪 Testing

  • Added comprehensive unit tests for code generation functionality
  • Enhanced test coverage for model generation and repository creation

📁 File Changes

  • Modified : 15+ files across model generation, repository interfaces, documentation, and core application logic
  • Added : New worker package, comprehensive documentation, and enhanced code generation capabilities
  • Improved : SQL parsing logic, error handling, and development tooling
    Full Changelog : v1.5.0...v1.6.0

This release significantly enhances the code generation capabilities, improves the authentication system, and provides better development tools for building robust Go APIs.