// Package sys // @Link https://github.com/bufanyun/hotgo // @Copyright Copyright (c) 2026 HotGo // @Author Ms <133814250@qq.com> // @License https://github.com/bufanyun/hotgo/blob/master/LICENSE package sys import ( "context" "hotgo/api/admin/imtenantapplication" "hotgo/internal/model/input/sysin" "hotgo/internal/service" ) var ( ImTenantApplication = cImTenantApplication{} ) type cImTenantApplication struct{} // List 查看企业注册申请列表 func (c *cImTenantApplication) List(ctx context.Context, req *imtenantapplication.ListReq) (res *imtenantapplication.ListRes, err error) { list, totalCount, err := service.SysImTenantApplication().List(ctx, &req.ImTenantApplicationListInp) if err != nil { return } if list == nil { list = []*sysin.ImTenantApplicationListModel{} } res = new(imtenantapplication.ListRes) res.List = list res.PageRes.Pack(req, totalCount) return } // View 获取指定企业注册申请信息 func (c *cImTenantApplication) View(ctx context.Context, req *imtenantapplication.ViewReq) (res *imtenantapplication.ViewRes, err error) { data, err := service.SysImTenantApplication().View(ctx, &req.ImTenantApplicationViewInp) if err != nil { return } res = new(imtenantapplication.ViewRes) res.ImTenantApplicationViewModel = data return }