refactor: 将 DTO 文件从 internal/model 移动到 internal/model/dto 目录
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 4m22s

- 移动 17 个 DTO 文件到 internal/model/dto/ 目录
- 更新所有 DTO 文件的 package 声明从 model 改为 dto
- 更新所有引用文件的 import 和类型引用
  - Handler 层:admin 和 h5 所有处理器
  - Service 层:所有业务服务
  - Routes 层:所有路由定义
  - Tests 层:单元测试和集成测试
- 清理未使用的 import 语句
- 验证:项目构建成功,测试编译通过,LSP 无错误
This commit is contained in:
2026-01-22 10:15:04 +08:00
parent 23be0a7d3e
commit 46e4e5f4f1
73 changed files with 531 additions and 501 deletions

View File

@@ -1,4 +1,4 @@
package model
package dto
// CreateAccountRequest 创建账号请求
type CreateAccountRequest struct {

View File

@@ -1,4 +1,4 @@
package model
package dto
// AccountRoleResponse 账号-角色关联响应
type AccountRoleResponse struct {

View File

@@ -1,4 +1,4 @@
package model
package dto
type LoginRequest struct {
Username string `json:"username" validate:"required"`

View File

@@ -1,4 +1,4 @@
package model
package dto
// WithdrawalRequestListReq 提现申请列表查询请求
type WithdrawalRequestListReq struct {

View File

@@ -1,4 +1,4 @@
package model
package dto
type CreateWithdrawalSettingReq struct {
DailyWithdrawalLimit int `json:"daily_withdrawal_limit" validate:"required,min=1,max=100" required:"true" minimum:"1" maximum:"100" description:"每日提现次数限制"`

View File

@@ -1,4 +1,4 @@
package model
package dto
// IDReq 通用 ID 路径参数请求
type IDReq struct {

View File

@@ -1,4 +1,4 @@
package model
package dto
type CustomerAccountListReq struct {
Page int `json:"page" query:"page" validate:"omitempty,min=1" minimum:"1" description:"页码"`

View File

@@ -1,4 +1,4 @@
package model
package dto
type AllocateCardsPreviewReq struct {
ID uint `json:"-" params:"id" path:"id" validate:"required" required:"true" description:"企业ID"`

View File

@@ -1,4 +1,4 @@
package model
package dto
type CreateEnterpriseReq struct {
EnterpriseName string `json:"enterprise_name" validate:"required,max=100" required:"true" maximum:"100" description:"企业名称"`

View File

@@ -1,4 +1,4 @@
package model
package dto
type MyCommissionSummaryResp struct {
ShopID uint `json:"shop_id" description:"店铺ID"`

View File

@@ -1,4 +1,4 @@
package model
package dto
// CreatePermissionRequest 创建权限请求
type CreatePermissionRequest struct {

View File

@@ -1,4 +1,4 @@
package model
package dto
// CreatePersonalCustomerRequest 创建个人客户请求
type CreatePersonalCustomerRequest struct {

View File

@@ -1,4 +1,4 @@
package model
package dto
// CreateRoleRequest 创建角色请求
type CreateRoleRequest struct {

View File

@@ -1,4 +1,4 @@
package model
package dto
// RolePermissionResponse 角色-权限关联响应
type RolePermissionResponse struct {

View File

@@ -1,4 +1,4 @@
package model
package dto
// ShopAccountListRequest 代理商账号列表查询请求
type ShopAccountListRequest struct {

View File

@@ -1,4 +1,4 @@
package model
package dto
// ========================================
// 代理商佣金查询 DTO

View File

@@ -1,4 +1,4 @@
package model
package dto
type ShopListRequest struct {
Page int `json:"page" query:"page" validate:"omitempty,min=1" minimum:"1" description:"页码"`