fix
This commit is contained in:
parent
eec742d48a
commit
f279c4edc9
24
model/gmodel/ldap_apis_gen.go
Normal file
24
model/gmodel/ldap_apis_gen.go
Normal file
|
@ -0,0 +1,24 @@
|
|||
package gmodel
|
||||
|
||||
import (
|
||||
"gorm.io/gorm"
|
||||
"time"
|
||||
)
|
||||
|
||||
// ldap_apis api表
|
||||
type LdapApis struct {
|
||||
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
||||
Method *string `gorm:"default:'';" json:"method"` //
|
||||
Path *string `gorm:"default:'';" json:"path"` //
|
||||
Category *string `gorm:"default:'';" json:"category"` //
|
||||
Remark *string `gorm:"default:'';" json:"remark"` //
|
||||
Creator *string `gorm:"default:'';" json:"creator"` //
|
||||
Ctime *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"ctime"` //
|
||||
Utime *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"utime"` //
|
||||
}
|
||||
type LdapApisModel struct {
|
||||
db *gorm.DB
|
||||
name string
|
||||
}
|
||||
|
||||
func NewLdapApisModel(db *gorm.DB) *LdapApisModel { return &LdapApisModel{db: db, name: "ldap_apis"} }
|
2
model/gmodel/ldap_apis_logic.go
Normal file
2
model/gmodel/ldap_apis_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
|||
package gmodel
|
||||
// TODO: 使用model的属性做你想做的
|
24
model/gmodel/ldap_casbin_rule_gen.go
Normal file
24
model/gmodel/ldap_casbin_rule_gen.go
Normal file
|
@ -0,0 +1,24 @@
|
|||
package gmodel
|
||||
|
||||
import (
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
// ldap_casbin_rule 权限表
|
||||
type LdapCasbinRule struct {
|
||||
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
||||
V0 *string `gorm:"default:'';" json:"v0"` //
|
||||
V1 *string `gorm:"default:'';" json:"v1"` //
|
||||
V2 *string `gorm:"default:'';" json:"v2"` //
|
||||
V3 *string `gorm:"default:'';" json:"v3"` //
|
||||
V4 *string `gorm:"default:'';" json:"v4"` //
|
||||
V5 *string `gorm:"default:'';" json:"v5"` //
|
||||
}
|
||||
type LdapCasbinRuleModel struct {
|
||||
db *gorm.DB
|
||||
name string
|
||||
}
|
||||
|
||||
func NewLdapCasbinRuleModel(db *gorm.DB) *LdapCasbinRuleModel {
|
||||
return &LdapCasbinRuleModel{db: db, name: "ldap_casbin_rule"}
|
||||
}
|
2
model/gmodel/ldap_casbin_rule_logic.go
Normal file
2
model/gmodel/ldap_casbin_rule_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
|||
package gmodel
|
||||
// TODO: 使用model的属性做你想做的
|
28
model/gmodel/ldap_department_gen.go
Normal file
28
model/gmodel/ldap_department_gen.go
Normal file
|
@ -0,0 +1,28 @@
|
|||
package gmodel
|
||||
|
||||
import (
|
||||
"gorm.io/gorm"
|
||||
"time"
|
||||
)
|
||||
|
||||
// ldap_department 部门表
|
||||
type LdapDepartment struct {
|
||||
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
||||
Name *string `gorm:"default:'';" json:"name"` //
|
||||
Remark *string `gorm:"default:'';" json:"remark"` //
|
||||
Creator *string `gorm:"default:'';" json:"creator"` //
|
||||
Type *string `gorm:"default:'';" json:"type"` //
|
||||
ParentId *int64 `gorm:"default:0;" json:"parent_id"` //
|
||||
Dn *string `gorm:"default:'';" json:"dn"` //
|
||||
SyncState *int64 `gorm:"default:1;" json:"sync_state"` //
|
||||
Ctime *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"ctime"` //
|
||||
Utime *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"utime"` //
|
||||
}
|
||||
type LdapDepartmentModel struct {
|
||||
db *gorm.DB
|
||||
name string
|
||||
}
|
||||
|
||||
func NewLdapDepartmentModel(db *gorm.DB) *LdapDepartmentModel {
|
||||
return &LdapDepartmentModel{db: db, name: "ldap_department"}
|
||||
}
|
7
model/gmodel/ldap_department_logic.go
Normal file
7
model/gmodel/ldap_department_logic.go
Normal file
|
@ -0,0 +1,7 @@
|
|||
package gmodel
|
||||
|
||||
import "context"
|
||||
|
||||
func (d *LdapDepartmentModel)GetList(ctx context.Context,page,pageSize int,sort string)(resp []LdapDepartment,total int64,err error){
|
||||
return nil, 0, nil
|
||||
}
|
19
model/gmodel/ldap_department_users_gen.go
Normal file
19
model/gmodel/ldap_department_users_gen.go
Normal file
|
@ -0,0 +1,19 @@
|
|||
package gmodel
|
||||
|
||||
import (
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
// ldap_department_users 部门用户表
|
||||
type LdapDepartmentUsers struct {
|
||||
DepartmentId *int64 `gorm:"default:0;" json:"department_id"` //
|
||||
UserId *int64 `gorm:"default:0;" json:"user_id"` //
|
||||
}
|
||||
type LdapDepartmentUsersModel struct {
|
||||
db *gorm.DB
|
||||
name string
|
||||
}
|
||||
|
||||
func NewLdapDepartmentUsersModel(db *gorm.DB) *LdapDepartmentUsersModel {
|
||||
return &LdapDepartmentUsersModel{db: db, name: "ldap_department_users"}
|
||||
}
|
2
model/gmodel/ldap_department_users_logic.go
Normal file
2
model/gmodel/ldap_department_users_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
|||
package gmodel
|
||||
// TODO: 使用model的属性做你想做的
|
29
model/gmodel/ldap_menus_gen.go
Normal file
29
model/gmodel/ldap_menus_gen.go
Normal file
|
@ -0,0 +1,29 @@
|
|||
package gmodel
|
||||
|
||||
import (
|
||||
"gorm.io/gorm"
|
||||
"time"
|
||||
)
|
||||
|
||||
// ldap_menus 菜单表
|
||||
type LdapMenus struct {
|
||||
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
||||
Name *string `gorm:"default:'';" json:"name"` //
|
||||
Title *string `gorm:"default:'';" json:"title"` //
|
||||
Icon *string `gorm:"default:'';" json:"icon"` //
|
||||
Path *string `gorm:"default:'';" json:"path"` //
|
||||
Sort *int64 `gorm:"default:999;" json:"sort"` //
|
||||
Status *int64 `gorm:"default:1;" json:"status"` //
|
||||
ParentId *int64 `gorm:"default:0;" json:"parent_id"` //
|
||||
Creator *string `gorm:"default:'';" json:"creator"` //
|
||||
Ctime *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"ctime"` //
|
||||
Utime *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"utime"` //
|
||||
}
|
||||
type LdapMenusModel struct {
|
||||
db *gorm.DB
|
||||
name string
|
||||
}
|
||||
|
||||
func NewLdapMenusModel(db *gorm.DB) *LdapMenusModel {
|
||||
return &LdapMenusModel{db: db, name: "ldap_menus"}
|
||||
}
|
2
model/gmodel/ldap_menus_logic.go
Normal file
2
model/gmodel/ldap_menus_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
|||
package gmodel
|
||||
// TODO: 使用model的属性做你想做的
|
19
model/gmodel/ldap_role_menus_gen.go
Normal file
19
model/gmodel/ldap_role_menus_gen.go
Normal file
|
@ -0,0 +1,19 @@
|
|||
package gmodel
|
||||
|
||||
import (
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
// ldap_role_menus 角色菜单表
|
||||
type LdapRoleMenus struct {
|
||||
MenuId *int64 `gorm:"default:0;" json:"menu_id"` //
|
||||
RoleId *int64 `gorm:"default:0;" json:"role_id"` //
|
||||
}
|
||||
type LdapRoleMenusModel struct {
|
||||
db *gorm.DB
|
||||
name string
|
||||
}
|
||||
|
||||
func NewLdapRoleMenusModel(db *gorm.DB) *LdapRoleMenusModel {
|
||||
return &LdapRoleMenusModel{db: db, name: "ldap_role_menus"}
|
||||
}
|
2
model/gmodel/ldap_role_menus_logic.go
Normal file
2
model/gmodel/ldap_role_menus_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
|||
package gmodel
|
||||
// TODO: 使用model的属性做你想做的
|
27
model/gmodel/ldap_roles_gen.go
Normal file
27
model/gmodel/ldap_roles_gen.go
Normal file
|
@ -0,0 +1,27 @@
|
|||
package gmodel
|
||||
|
||||
import (
|
||||
"gorm.io/gorm"
|
||||
"time"
|
||||
)
|
||||
|
||||
// ldap_roles 角色表
|
||||
type LdapRoles struct {
|
||||
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
||||
Name *string `gorm:"unique_key;default:'';" json:"name"` //
|
||||
Keyword *string `gorm:"unique_key;default:'';" json:"keyword"` //
|
||||
Remark *string `gorm:"default:'';" json:"remark"` //
|
||||
Status *int64 `gorm:"default:1;" json:"status"` //
|
||||
Sort *int64 `gorm:"default:999;" json:"sort"` //
|
||||
Creator *string `gorm:"default:'';" json:"creator"` //
|
||||
Ctime *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"ctime"` //
|
||||
Utime *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"utime"` //
|
||||
}
|
||||
type LdapRolesModel struct {
|
||||
db *gorm.DB
|
||||
name string
|
||||
}
|
||||
|
||||
func NewLdapRolesModel(db *gorm.DB) *LdapRolesModel {
|
||||
return &LdapRolesModel{db: db, name: "ldap_roles"}
|
||||
}
|
2
model/gmodel/ldap_roles_logic.go
Normal file
2
model/gmodel/ldap_roles_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
|||
package gmodel
|
||||
// TODO: 使用model的属性做你想做的
|
19
model/gmodel/ldap_user_roles_gen.go
Normal file
19
model/gmodel/ldap_user_roles_gen.go
Normal file
|
@ -0,0 +1,19 @@
|
|||
package gmodel
|
||||
|
||||
import (
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
// ldap_user_roles 用户角色表
|
||||
type LdapUserRoles struct {
|
||||
RoleId *int64 `gorm:"default:0;" json:"role_id"` //
|
||||
UserId *int64 `gorm:"default:0;" json:"user_id"` //
|
||||
}
|
||||
type LdapUserRolesModel struct {
|
||||
db *gorm.DB
|
||||
name string
|
||||
}
|
||||
|
||||
func NewLdapUserRolesModel(db *gorm.DB) *LdapUserRolesModel {
|
||||
return &LdapUserRolesModel{db: db, name: "ldap_user_roles"}
|
||||
}
|
2
model/gmodel/ldap_user_roles_logic.go
Normal file
2
model/gmodel/ldap_user_roles_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
|||
package gmodel
|
||||
// TODO: 使用model的属性做你想做的
|
35
model/gmodel/ldap_users_gen.go
Normal file
35
model/gmodel/ldap_users_gen.go
Normal file
|
@ -0,0 +1,35 @@
|
|||
package gmodel
|
||||
|
||||
import (
|
||||
"gorm.io/gorm"
|
||||
"time"
|
||||
)
|
||||
|
||||
// ldap_users 用户表
|
||||
type LdapUsers struct {
|
||||
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
||||
Username *string `gorm:"unique_key;default:'';" json:"username"` //
|
||||
Password *string `gorm:"default:'';" json:"password"` //
|
||||
Nickname *string `gorm:"default:'';" json:"nickname"` //
|
||||
GivenName *string `gorm:"default:'';" json:"given_name"` //
|
||||
Email *string `gorm:"default:'';" json:"email"` //
|
||||
JobNumber *string `gorm:"default:'';" json:"job_number"` //
|
||||
Mobile *string `gorm:"unique_key;default:'';" json:"mobile"` //
|
||||
Avatar *string `gorm:"default:'';" json:"avatar"` //
|
||||
Position *string `gorm:"default:'';" json:"position"` //
|
||||
Introduction *string `gorm:"default:'';" json:"introduction"` //
|
||||
Status *int64 `gorm:"default:1;" json:"status"` //
|
||||
Creator *string `gorm:"default:'';" json:"creator"` //
|
||||
UserDn *string `gorm:"default:'';" json:"user_dn"` //
|
||||
SyncState *int64 `gorm:"default:1;" json:"sync_state"` //
|
||||
Ctime *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"ctime"` //
|
||||
Utime *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"utime"` //
|
||||
}
|
||||
type LdapUsersModel struct {
|
||||
db *gorm.DB
|
||||
name string
|
||||
}
|
||||
|
||||
func NewLdapUsersModel(db *gorm.DB) *LdapUsersModel {
|
||||
return &LdapUsersModel{db: db, name: "ldap_users"}
|
||||
}
|
2
model/gmodel/ldap_users_logic.go
Normal file
2
model/gmodel/ldap_users_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
|||
package gmodel
|
||||
// TODO: 使用model的属性做你想做的
|
|
@ -16,19 +16,14 @@ type AllModelsGen struct {
|
|||
FsCardGroup *FsCardGroupModel // fs_card_group 卡号分组表
|
||||
FsCart *FsCartModel // fs_cart 购物车
|
||||
FsChangeCode *FsChangeCodeModel // fs_change_code 忘记密码code表
|
||||
FsCloudDeliverEveryTmpOld *FsCloudDeliverEveryTmpOldModel // fs_cloud_deliver_every_tmp_old
|
||||
FsCloudDeliverTmpOld *FsCloudDeliverTmpOldModel // fs_cloud_deliver_tmp_old
|
||||
FsCloudOld *FsCloudOldModel // fs_cloud_old 云仓表
|
||||
FsCloudPickUpDetailOld *FsCloudPickUpDetailOldModel // fs_cloud_pick_up_detail_old 云仓提货单-详情
|
||||
FsCloudPickUpOld *FsCloudPickUpOldModel // fs_cloud_pick_up_old 云仓提货单
|
||||
FsCloudReceiveEveryOld *FsCloudReceiveEveryOldModel // fs_cloud_receive_every_old
|
||||
FsCloudReceiveOld *FsCloudReceiveOldModel // fs_cloud_receive_old 云仓接收工厂总单
|
||||
FsCloudRenderLog *FsCloudRenderLogModel // fs_cloud_render_log 云渲染日志表
|
||||
FsCloudStorage *FsCloudStorageModel // fs_cloud_storage 仓库的基本信息, 只做映射
|
||||
FsCloudStorageStock *FsCloudStorageStockModel // fs_cloud_storage_stock
|
||||
FsCloudUserApplyBackOld *FsCloudUserApplyBackOldModel // fs_cloud_user_apply_back_old 该表废弃
|
||||
FsContact *FsContactModel // fs_contact 该表暂未使用
|
||||
FsContactService *FsContactServiceModel // fs_contact_service
|
||||
FsCoupon *FsCouponModel // fs_coupon 代金券(暂未使用)
|
||||
FsDeliver *FsDeliverModel // fs_deliver 发货表 云仓 直发 通用(已废弃)
|
||||
FsDeliverEvery *FsDeliverEveryModel // fs_deliver_every 发货详细表(已废弃)
|
||||
|
@ -39,7 +34,6 @@ type AllModelsGen struct {
|
|||
FsFactoryDeliver *FsFactoryDeliverModel // fs_factory_deliver 工厂发货主表(废弃)
|
||||
FsFactoryDeliverEvery *FsFactoryDeliverEveryModel // fs_factory_deliver_every 该表废弃
|
||||
FsFactoryProduct *FsFactoryProductModel // fs_factory_product 工厂生产表(废弃)
|
||||
FsFactoryShipTmp *FsFactoryShipTmpModel // fs_factory_ship_tmp
|
||||
FsFaq *FsFaqModel // fs_faq 常见问题
|
||||
FsFeishuWebhookLog *FsFeishuWebhookLogModel // fs_feishu_webhook_log 飞书webhook记录表
|
||||
FsFont *FsFontModel // fs_font 字体配置
|
||||
|
@ -57,7 +51,6 @@ type AllModelsGen struct {
|
|||
FsOrderCombineImageRecord *FsOrderCombineImageRecordModel // fs_order_combine_image_record 刀版图记录表
|
||||
FsOrderDetailOld *FsOrderDetailOldModel // fs_order_detail_old 订单详细表
|
||||
FsOrderDetailTemplateOld *FsOrderDetailTemplateOldModel // fs_order_detail_template_old 订单模板详细表
|
||||
FsOrderOld *FsOrderOldModel // fs_order_old
|
||||
FsOrderRemarkOld *FsOrderRemarkOldModel // fs_order_remark_old 订单备注表
|
||||
FsOrderTrade *FsOrderTradeModel // fs_order_trade 订单交易表
|
||||
FsOrderTradeEvent *FsOrderTradeEventModel // fs_order_trade_event 订单交易事件表
|
||||
|
@ -66,13 +59,11 @@ type AllModelsGen struct {
|
|||
FsProductCollection *FsProductCollectionModel // fs_product_collection 产品收藏表
|
||||
FsProductCopy1 *FsProductCopy1Model // fs_product_copy1 产品表
|
||||
FsProductDesign *FsProductDesignModel // fs_product_design 产品设计表
|
||||
FsProductDesignGather *FsProductDesignGatherModel // fs_product_design_gather
|
||||
FsProductHistoryTemplate *FsProductHistoryTemplateModel // fs_product_history_template 模板历史表
|
||||
FsProductModel3d *FsProductModel3dModel // fs_product_model3d 产品模型表
|
||||
FsProductModel3dLight *FsProductModel3dLightModel // fs_product_model3d_light 模型-灯光组表
|
||||
FsProductOption *FsProductOptionModel // fs_product_option 产品选项表(已废弃)
|
||||
FsProductPrice *FsProductPriceModel // fs_product_price 阶梯价格表
|
||||
FsProductRenderDesign *FsProductRenderDesignModel // fs_product_render_design
|
||||
FsProductScene *FsProductSceneModel // fs_product_scene 产品场景表
|
||||
FsProductSize *FsProductSizeModel // fs_product_size 产品尺寸表
|
||||
FsProductTagProp *FsProductTagPropModel // fs_product_tag_prop 产品标签相关属性表
|
||||
|
@ -82,7 +73,6 @@ type AllModelsGen struct {
|
|||
FsProductTemplateTags *FsProductTemplateTagsModel // fs_product_template_tags 模板标签表
|
||||
FsProductTemplateV2 *FsProductTemplateV2Model // fs_product_template_v2 产品-模型- 模板表
|
||||
FsProductV2Tmp *FsProductV2TmpModel // fs_product_v2_tmp 产品表
|
||||
FsQrcode *FsQrcodeModel // fs_qrcode
|
||||
FsQrcodeLog *FsQrcodeLogModel // fs_qrcode_log 二维码扫描日志
|
||||
FsQrcodeSet *FsQrcodeSetModel // fs_qrcode_set 二维码边框配置表
|
||||
FsQrcodeUser *FsQrcodeUserModel // fs_qrcode_user 二维码-用户名表
|
||||
|
@ -92,7 +82,6 @@ type AllModelsGen struct {
|
|||
FsQuotationRemarkTemplate *FsQuotationRemarkTemplateModel // fs_quotation_remark_template 报价单备注模板
|
||||
FsQuotationSaler *FsQuotationSalerModel // fs_quotation_saler 报价单业务员表
|
||||
FsQuotationSizeLayout *FsQuotationSizeLayoutModel // fs_quotation_size_layout 产品尺寸排版表
|
||||
FsRefundReason *FsRefundReasonModel // fs_refund_reason
|
||||
FsResource *FsResourceModel // fs_resource 资源表
|
||||
FsShoppingCart *FsShoppingCartModel // fs_shopping_cart 新版购物车表
|
||||
FsStandardLogo *FsStandardLogoModel // fs_standard_logo 标准logo
|
||||
|
@ -100,7 +89,6 @@ type AllModelsGen struct {
|
|||
FsToolLogs *FsToolLogsModel // fs_tool_logs 3d设计工具日志表
|
||||
FsToolTemplate *FsToolTemplateModel // fs_tool_template 设计工具模板(废弃)
|
||||
FsToolUser *FsToolUserModel // fs_tool_user 3d设计工具用户表
|
||||
FsTrade *FsTradeModel // fs_trade
|
||||
FsUser *FsUserModel // fs_user 用户表
|
||||
FsUserDebug *FsUserDebugModel // fs_user_debug 用户debug
|
||||
FsUserInfo *FsUserInfoModel // fs_user_info 用户信息表
|
||||
|
@ -108,6 +96,15 @@ type AllModelsGen struct {
|
|||
FsUserStock *FsUserStockModel // fs_user_stock 用户云仓库存
|
||||
FsWebSet *FsWebSetModel // fs_web_set 网站配置表
|
||||
FsZipCode *FsZipCodeModel // fs_zip_code 邮编表
|
||||
LdapApis *LdapApisModel // ldap_apis api表
|
||||
LdapCasbinRule *LdapCasbinRuleModel // ldap_casbin_rule 权限表
|
||||
LdapDepartment *LdapDepartmentModel // ldap_department 部门表
|
||||
LdapDepartmentUsers *LdapDepartmentUsersModel // ldap_department_users 部门用户表
|
||||
LdapMenus *LdapMenusModel // ldap_menus 菜单表
|
||||
LdapRoleMenus *LdapRoleMenusModel // ldap_role_menus 角色菜单表
|
||||
LdapRoles *LdapRolesModel // ldap_roles 角色表
|
||||
LdapUserRoles *LdapUserRolesModel // ldap_user_roles 用户角色表
|
||||
LdapUsers *LdapUsersModel // ldap_users 用户表
|
||||
|
||||
}
|
||||
|
||||
|
@ -125,19 +122,14 @@ func NewAllModels(gdb *gorm.DB) *AllModelsGen {
|
|||
FsCardGroup: NewFsCardGroupModel(gdb),
|
||||
FsCart: NewFsCartModel(gdb),
|
||||
FsChangeCode: NewFsChangeCodeModel(gdb),
|
||||
FsCloudDeliverEveryTmpOld: NewFsCloudDeliverEveryTmpOldModel(gdb),
|
||||
FsCloudDeliverTmpOld: NewFsCloudDeliverTmpOldModel(gdb),
|
||||
FsCloudOld: NewFsCloudOldModel(gdb),
|
||||
FsCloudPickUpDetailOld: NewFsCloudPickUpDetailOldModel(gdb),
|
||||
FsCloudPickUpOld: NewFsCloudPickUpOldModel(gdb),
|
||||
FsCloudReceiveEveryOld: NewFsCloudReceiveEveryOldModel(gdb),
|
||||
FsCloudReceiveOld: NewFsCloudReceiveOldModel(gdb),
|
||||
FsCloudRenderLog: NewFsCloudRenderLogModel(gdb),
|
||||
FsCloudStorage: NewFsCloudStorageModel(gdb),
|
||||
FsCloudStorageStock: NewFsCloudStorageStockModel(gdb),
|
||||
FsCloudUserApplyBackOld: NewFsCloudUserApplyBackOldModel(gdb),
|
||||
FsContact: NewFsContactModel(gdb),
|
||||
FsContactService: NewFsContactServiceModel(gdb),
|
||||
FsCoupon: NewFsCouponModel(gdb),
|
||||
FsDeliver: NewFsDeliverModel(gdb),
|
||||
FsDeliverEvery: NewFsDeliverEveryModel(gdb),
|
||||
|
@ -148,7 +140,6 @@ func NewAllModels(gdb *gorm.DB) *AllModelsGen {
|
|||
FsFactoryDeliver: NewFsFactoryDeliverModel(gdb),
|
||||
FsFactoryDeliverEvery: NewFsFactoryDeliverEveryModel(gdb),
|
||||
FsFactoryProduct: NewFsFactoryProductModel(gdb),
|
||||
FsFactoryShipTmp: NewFsFactoryShipTmpModel(gdb),
|
||||
FsFaq: NewFsFaqModel(gdb),
|
||||
FsFeishuWebhookLog: NewFsFeishuWebhookLogModel(gdb),
|
||||
FsFont: NewFsFontModel(gdb),
|
||||
|
@ -166,7 +157,6 @@ func NewAllModels(gdb *gorm.DB) *AllModelsGen {
|
|||
FsOrderCombineImageRecord: NewFsOrderCombineImageRecordModel(gdb),
|
||||
FsOrderDetailOld: NewFsOrderDetailOldModel(gdb),
|
||||
FsOrderDetailTemplateOld: NewFsOrderDetailTemplateOldModel(gdb),
|
||||
FsOrderOld: NewFsOrderOldModel(gdb),
|
||||
FsOrderRemarkOld: NewFsOrderRemarkOldModel(gdb),
|
||||
FsOrderTrade: NewFsOrderTradeModel(gdb),
|
||||
FsOrderTradeEvent: NewFsOrderTradeEventModel(gdb),
|
||||
|
@ -175,13 +165,11 @@ func NewAllModels(gdb *gorm.DB) *AllModelsGen {
|
|||
FsProductCollection: NewFsProductCollectionModel(gdb),
|
||||
FsProductCopy1: NewFsProductCopy1Model(gdb),
|
||||
FsProductDesign: NewFsProductDesignModel(gdb),
|
||||
FsProductDesignGather: NewFsProductDesignGatherModel(gdb),
|
||||
FsProductHistoryTemplate: NewFsProductHistoryTemplateModel(gdb),
|
||||
FsProductModel3d: NewFsProductModel3dModel(gdb),
|
||||
FsProductModel3dLight: NewFsProductModel3dLightModel(gdb),
|
||||
FsProductOption: NewFsProductOptionModel(gdb),
|
||||
FsProductPrice: NewFsProductPriceModel(gdb),
|
||||
FsProductRenderDesign: NewFsProductRenderDesignModel(gdb),
|
||||
FsProductScene: NewFsProductSceneModel(gdb),
|
||||
FsProductSize: NewFsProductSizeModel(gdb),
|
||||
FsProductTagProp: NewFsProductTagPropModel(gdb),
|
||||
|
@ -191,7 +179,6 @@ func NewAllModels(gdb *gorm.DB) *AllModelsGen {
|
|||
FsProductTemplateTags: NewFsProductTemplateTagsModel(gdb),
|
||||
FsProductTemplateV2: NewFsProductTemplateV2Model(gdb),
|
||||
FsProductV2Tmp: NewFsProductV2TmpModel(gdb),
|
||||
FsQrcode: NewFsQrcodeModel(gdb),
|
||||
FsQrcodeLog: NewFsQrcodeLogModel(gdb),
|
||||
FsQrcodeSet: NewFsQrcodeSetModel(gdb),
|
||||
FsQrcodeUser: NewFsQrcodeUserModel(gdb),
|
||||
|
@ -201,7 +188,6 @@ func NewAllModels(gdb *gorm.DB) *AllModelsGen {
|
|||
FsQuotationRemarkTemplate: NewFsQuotationRemarkTemplateModel(gdb),
|
||||
FsQuotationSaler: NewFsQuotationSalerModel(gdb),
|
||||
FsQuotationSizeLayout: NewFsQuotationSizeLayoutModel(gdb),
|
||||
FsRefundReason: NewFsRefundReasonModel(gdb),
|
||||
FsResource: NewFsResourceModel(gdb),
|
||||
FsShoppingCart: NewFsShoppingCartModel(gdb),
|
||||
FsStandardLogo: NewFsStandardLogoModel(gdb),
|
||||
|
@ -209,7 +195,6 @@ func NewAllModels(gdb *gorm.DB) *AllModelsGen {
|
|||
FsToolLogs: NewFsToolLogsModel(gdb),
|
||||
FsToolTemplate: NewFsToolTemplateModel(gdb),
|
||||
FsToolUser: NewFsToolUserModel(gdb),
|
||||
FsTrade: NewFsTradeModel(gdb),
|
||||
FsUser: NewFsUserModel(gdb),
|
||||
FsUserDebug: NewFsUserDebugModel(gdb),
|
||||
FsUserInfo: NewFsUserInfoModel(gdb),
|
||||
|
@ -217,6 +202,15 @@ func NewAllModels(gdb *gorm.DB) *AllModelsGen {
|
|||
FsUserStock: NewFsUserStockModel(gdb),
|
||||
FsWebSet: NewFsWebSetModel(gdb),
|
||||
FsZipCode: NewFsZipCodeModel(gdb),
|
||||
LdapApis: NewLdapApisModel(gdb),
|
||||
LdapCasbinRule: NewLdapCasbinRuleModel(gdb),
|
||||
LdapDepartment: NewLdapDepartmentModel(gdb),
|
||||
LdapDepartmentUsers: NewLdapDepartmentUsersModel(gdb),
|
||||
LdapMenus: NewLdapMenusModel(gdb),
|
||||
LdapRoleMenus: NewLdapRoleMenusModel(gdb),
|
||||
LdapRoles: NewLdapRolesModel(gdb),
|
||||
LdapUserRoles: NewLdapUserRolesModel(gdb),
|
||||
LdapUsers: NewLdapUsersModel(gdb),
|
||||
}
|
||||
return models
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@ func NewGetDepartmentsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *Ge
|
|||
// }
|
||||
|
||||
func (l *GetDepartmentsLogic) GetDepartments(req *types.GetDepartmentsReq, userinfo *auth.UserInfo) (resp *basic.Response) {
|
||||
|
||||
l.svcCtx.AllModels.LdapDepartment
|
||||
return resp.SetStatus(basic.CodeOK)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user