package sysin import ( "context" "hotgo/internal/model/input/form" "github.com/gogf/gf/v2/errors/gerror" "github.com/gogf/gf/v2/os/gtime" ) type ImKafkaAuditListInp struct { form.PageReq TenantCode string `json:"tenantCode" dc:"租户编码"` EventId string `json:"eventId" dc:"事件ID"` EventType string `json:"eventType" dc:"事件类型"` BizType string `json:"bizType" dc:"业务类型"` BizId string `json:"bizId" dc:"业务ID"` ActorType string `json:"actorType" dc:"操作者类型"` ActorId string `json:"actorId" dc:"操作者ID"` Action string `json:"action" dc:"动作"` Resource string `json:"resource" dc:"资源"` ResourceId string `json:"resourceId" dc:"资源ID"` Result string `json:"result" dc:"结果"` CreatedAt []*gtime.Time `json:"createdAt" dc:"接收时间"` } func (in *ImKafkaAuditListInp) Filter(ctx context.Context) (err error) { return nil } type ImKafkaAuditListModel struct { Id int64 `json:"id" dc:"ID"` EventId string `json:"eventId" dc:"事件ID"` TenantCode string `json:"tenantCode" dc:"租户编码"` EventType string `json:"eventType" dc:"事件类型"` BizType string `json:"bizType" dc:"业务类型"` BizId string `json:"bizId" dc:"业务ID"` ActorType string `json:"actorType" dc:"操作者类型"` ActorId string `json:"actorId" dc:"操作者ID"` Action string `json:"action" dc:"动作"` Resource string `json:"resource" dc:"资源"` ResourceId string `json:"resourceId" dc:"资源ID"` Result string `json:"result" dc:"结果"` Reason string `json:"reason" dc:"原因"` Payload string `json:"payload" dc:"Payload"` Envelope string `json:"envelope" dc:"Envelope"` OccurredAt *gtime.Time `json:"occurredAt" dc:"发生时间"` ReceivedAt *gtime.Time `json:"receivedAt" dc:"接收时间"` } type ImKafkaAuditViewInp struct { Id int64 `json:"id" dc:"ID"` EventId string `json:"eventId" dc:"事件ID"` } func (in *ImKafkaAuditViewInp) Filter(ctx context.Context) (err error) { if in.Id <= 0 && in.EventId == "" { return gerror.New("请选择IM Kafka审计事件") } return nil } type ImKafkaAuditViewModel struct { ImKafkaAuditListModel }