feat: add tenant entry application pages
This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
// Package sysin
|
||||
// @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 sysin
|
||||
|
||||
import (
|
||||
"context"
|
||||
"hotgo/internal/model/input/form"
|
||||
|
||||
"github.com/gogf/gf/v2/errors/gerror"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// ImTenantApplicationListInp 获取企业注册申请列表
|
||||
type ImTenantApplicationListInp struct {
|
||||
form.PageReq
|
||||
ApplicationId string `json:"applicationId" dc:"申请ID"`
|
||||
CreditCode string `json:"creditCode" dc:"统一社会信用代码"`
|
||||
EnterpriseEmail string `json:"enterpriseEmail" dc:"企业邮箱"`
|
||||
TenantCodeHint string `json:"tenantCodeHint" dc:"商户编码线索"`
|
||||
Status string `json:"status" dc:"状态"`
|
||||
Keyword string `json:"keyword" dc:"关键词"`
|
||||
CreatedAt []*gtime.Time `json:"createdAt" dc:"创建时间"`
|
||||
}
|
||||
|
||||
func (in *ImTenantApplicationListInp) Filter(ctx context.Context) (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
type ImTenantApplicationListModel struct {
|
||||
Id int64 `json:"id" dc:"ID"`
|
||||
ApplicationId string `json:"applicationId" dc:"申请ID"`
|
||||
CreditCode string `json:"creditCode" dc:"统一社会信用代码"`
|
||||
EnterpriseEmail string `json:"enterpriseEmail" dc:"企业邮箱"`
|
||||
LicenseFileId string `json:"licenseFileId" dc:"营业执照文件ID"`
|
||||
TenantCodeHint string `json:"tenantCodeHint" dc:"商户编码线索"`
|
||||
Status string `json:"status" dc:"状态"`
|
||||
EstimatedReviewHour int `json:"estimatedReviewHour" dc:"预计审核小时"`
|
||||
SubmittedAt *gtime.Time `json:"submittedAt" dc:"提交时间"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" dc:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" dc:"修改时间"`
|
||||
}
|
||||
|
||||
// ImTenantApplicationViewInp 获取企业注册申请详情
|
||||
type ImTenantApplicationViewInp struct {
|
||||
Id int64 `json:"id" v:"required#ID不能为空" dc:"ID"`
|
||||
}
|
||||
|
||||
func (in *ImTenantApplicationViewInp) Filter(ctx context.Context) (err error) {
|
||||
if in.Id <= 0 {
|
||||
return gerror.New("ID不能为空")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
type ImTenantApplicationViewModel struct {
|
||||
ImTenantApplicationListModel
|
||||
ClientContext string `json:"clientContext" dc:"客户端上下文"`
|
||||
IdempotencyKey string `json:"idempotencyKey" dc:"幂等键"`
|
||||
LicenseFile *ImPublicUploadModel `json:"licenseFile" dc:"营业执照文件"`
|
||||
}
|
||||
Reference in New Issue
Block a user