package cg_sdk

import (
	"git.sxidc.com/go-framework/baize/framework/core/application"
)

type EncodeConfigInfo struct {
	application.InfoIDField
	application.InfoTenantIDField
	Namespace        string           `json:"namespace"`
	ConfigName       string           `json:"configName"`
	ConfigContentStr string           `json:"-"`
	ConfigContent    []EncodeSegment  `json:"configContent"`
	EncodeRuleID     string           `json:"encodeRuleId"`
	EncodeRuleStatus uint8            `json:"encodeRuleStatus"`
	FormSelectList   []FormSelectItem `json:"encodeSegmentContent"`
	application.InfoUserIDFields
	application.InfoTimeFields
}

// 编码段选择映射项
type EncodeSegment struct {
	EncodeSegmentID   string `json:"encodeSegmentId"`
	EncodeSegmentType string `json:"encodeSegmentType"`
	EncodeSegmentName string `json:"encodeSegmentName"`
	FieldValue        string `json:"fieldValue"`
}

// 业务表单对应编码段的选择项
type FormSelectItem struct {
	FieldName  string `json:"fieldName"`
	FieldValue string `json:"fieldValue"`
}