feat: 实现企业设备授权功能并归档 OpenSpec 变更
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 5m39s
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 5m39s
- 新增企业设备授权模块(Model、DTO、Service、Handler、Store) - 实现设备授权的创建、查询、更新、删除等完整业务逻辑 - 添加企业卡授权与设备授权的关联关系 - 新增 2 个数据库迁移脚本 - 同步 OpenSpec delta specs 到 main specs - 归档 add-enterprise-device-authorization 变更 - 更新 API 文档和路由配置 - 新增完整的集成测试和单元测试覆盖
This commit is contained in:
@@ -28,7 +28,7 @@ func generateOpenAPIDocs(outputPath string, logger *zap.Logger) {
|
||||
AdminAuth: admin.NewAuthHandler(nil, nil),
|
||||
H5Auth: h5.NewAuthHandler(nil, nil),
|
||||
Account: admin.NewAccountHandler(nil),
|
||||
Role: admin.NewRoleHandler(nil),
|
||||
Role: admin.NewRoleHandler(nil, nil),
|
||||
Permission: admin.NewPermissionHandler(nil),
|
||||
Shop: admin.NewShopHandler(nil),
|
||||
ShopAccount: admin.NewShopAccountHandler(nil),
|
||||
@@ -37,6 +37,8 @@ func generateOpenAPIDocs(outputPath string, logger *zap.Logger) {
|
||||
CommissionWithdrawalSetting: admin.NewCommissionWithdrawalSettingHandler(nil),
|
||||
Enterprise: admin.NewEnterpriseHandler(nil),
|
||||
EnterpriseCard: admin.NewEnterpriseCardHandler(nil),
|
||||
EnterpriseDevice: admin.NewEnterpriseDeviceHandler(nil),
|
||||
EnterpriseDeviceH5: h5.NewEnterpriseDeviceHandler(nil),
|
||||
Authorization: admin.NewAuthorizationHandler(nil),
|
||||
CustomerAccount: admin.NewCustomerAccountHandler(nil),
|
||||
MyCommission: admin.NewMyCommissionHandler(nil),
|
||||
|
||||
@@ -37,7 +37,7 @@ func generateAdminDocs(outputPath string) error {
|
||||
AdminAuth: admin.NewAuthHandler(nil, nil),
|
||||
H5Auth: h5.NewAuthHandler(nil, nil),
|
||||
Account: admin.NewAccountHandler(nil),
|
||||
Role: admin.NewRoleHandler(nil),
|
||||
Role: admin.NewRoleHandler(nil, nil),
|
||||
Permission: admin.NewPermissionHandler(nil),
|
||||
Shop: admin.NewShopHandler(nil),
|
||||
ShopAccount: admin.NewShopAccountHandler(nil),
|
||||
@@ -46,6 +46,8 @@ func generateAdminDocs(outputPath string) error {
|
||||
CommissionWithdrawalSetting: admin.NewCommissionWithdrawalSettingHandler(nil),
|
||||
Enterprise: admin.NewEnterpriseHandler(nil),
|
||||
EnterpriseCard: admin.NewEnterpriseCardHandler(nil),
|
||||
EnterpriseDevice: admin.NewEnterpriseDeviceHandler(nil),
|
||||
EnterpriseDeviceH5: h5.NewEnterpriseDeviceHandler(nil),
|
||||
Authorization: admin.NewAuthorizationHandler(nil),
|
||||
CustomerAccount: admin.NewCustomerAccountHandler(nil),
|
||||
MyCommission: admin.NewMyCommissionHandler(nil),
|
||||
|
||||
Reference in New Issue
Block a user