demo_gen_class.go 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // ==========================================================================
  2. // GFast自动生成dao操作代码,无需手动修改,重新生成不会自动覆盖.
  3. // 生成日期:2021-09-19 09:44:19
  4. // 生成路径: gfast/app/system/dao/demo_gen_class.go
  5. // 生成人:gfast
  6. // ==========================================================================
  7. package dao
  8. import (
  9. comModel "gfast/app/common/model"
  10. "gfast/app/system/dao/internal"
  11. )
  12. // demoGenClassDao is the manager for logic model data accessing and custom defined data operations functions management.
  13. // You can define custom methods on it to extend its functionality as you wish.
  14. type demoGenClassDao struct {
  15. *internal.DemoGenClassDao
  16. }
  17. var (
  18. // DemoGenClass is globally public accessible object for table tools_gen_table operations.
  19. DemoGenClass = demoGenClassDao{
  20. internal.NewDemoGenClassDao(),
  21. }
  22. )
  23. // Fill with you ideas below.
  24. // DemoGenClassSearchReq 分页请求参数
  25. type DemoGenClassSearchReq struct {
  26. ClassName string `p:"className"` //分类名
  27. comModel.PageReq
  28. }
  29. // DemoGenClassAddReq 添加操作请求参数
  30. type DemoGenClassAddReq struct {
  31. ClassName string `p:"className" v:"required#分类名不能为空"`
  32. }
  33. // DemoGenClassEditReq 修改操作请求参数
  34. type DemoGenClassEditReq struct {
  35. Id uint `p:"id" v:"required#主键ID不能为空"`
  36. ClassName string `p:"className" v:"required#分类名不能为空"`
  37. }