feat: add tenant entry application pages

This commit is contained in:
richjohnrambo
2026-09-22 23:17:55 +08:00
parent 935bfe17a0
commit abd5eb162a
22 changed files with 1447 additions and 55 deletions
@@ -0,0 +1,23 @@
// 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 "github.com/gogf/gf/v2/os/gtime"
// ImPublicUploadModel 企业注册入口公共上传文件
type ImPublicUploadModel struct {
Id int64 `json:"id" dc:"ID"`
FileId string `json:"fileId" dc:"文件ID"`
Purpose string `json:"purpose" dc:"用途"`
MimeType string `json:"mimeType" dc:"MIME类型"`
Size int64 `json:"size" dc:"文件大小"`
Etag string `json:"etag" dc:"ETag"`
Location string `json:"location" dc:"存储位置"`
Url string `json:"url" dc:"访问地址"`
ExpiresAt *gtime.Time `json:"expiresAt" dc:"过期时间"`
CreatedAt *gtime.Time `json:"createdAt" dc:"创建时间"`
UploadedAt *gtime.Time `json:"uploadedAt" dc:"上传完成时间"`
}
@@ -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:"营业执照文件"`
}
@@ -0,0 +1,61 @@
// 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"
)
// ImTenantEntryFeedbackListInp 获取企业入口反馈列表
type ImTenantEntryFeedbackListInp struct {
form.PageReq
FeedbackId string `json:"feedbackId" dc:"反馈ID"`
Contact string `json:"contact" dc:"联系方式"`
TenantCodeHint string `json:"tenantCodeHint" dc:"商户编码线索"`
Status string `json:"status" dc:"状态"`
Keyword string `json:"keyword" dc:"关键词"`
CreatedAt []*gtime.Time `json:"createdAt" dc:"创建时间"`
}
func (in *ImTenantEntryFeedbackListInp) Filter(ctx context.Context) (err error) {
return
}
type ImTenantEntryFeedbackListModel struct {
Id int64 `json:"id" dc:"ID"`
FeedbackId string `json:"feedbackId" dc:"反馈ID"`
Description string `json:"description" dc:"问题描述"`
Contact string `json:"contact" dc:"联系方式"`
TenantCodeHint string `json:"tenantCodeHint" dc:"商户编码线索"`
Status string `json:"status" dc:"状态"`
SubmittedAt *gtime.Time `json:"submittedAt" dc:"提交时间"`
CreatedAt *gtime.Time `json:"createdAt" dc:"创建时间"`
UpdatedAt *gtime.Time `json:"updatedAt" dc:"修改时间"`
}
// ImTenantEntryFeedbackViewInp 获取企业入口反馈详情
type ImTenantEntryFeedbackViewInp struct {
Id int64 `json:"id" v:"required#ID不能为空" dc:"ID"`
}
func (in *ImTenantEntryFeedbackViewInp) Filter(ctx context.Context) (err error) {
if in.Id <= 0 {
return gerror.New("ID不能为空")
}
return
}
type ImTenantEntryFeedbackViewModel struct {
ImTenantEntryFeedbackListModel
ScreenshotFileIds string `json:"screenshotFileIds" dc:"截图文件ID JSON"`
ClientContext string `json:"clientContext" dc:"客户端上下文"`
IdempotencyKey string `json:"idempotencyKey" dc:"幂等键"`
ScreenshotFiles []*ImPublicUploadModel `json:"screenshotFiles" dc:"截图文件"`
}