From 9942bbc74e562eef43ee5231324e49b15e238fd0 Mon Sep 17 00:00:00 2001 From: huang Date: Mon, 20 Apr 2026 15:39:47 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0=E5=AE=9E=E5=90=8D?= =?UTF-8?q?=E8=AE=A4=E8=AF=81=E7=AD=96=E7=95=A5=20DTO=20description=20?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=80=BC=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus --- internal/model/dto/device_import_dto.go | 2 +- internal/model/dto/iot_card_dto.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/model/dto/device_import_dto.go b/internal/model/dto/device_import_dto.go index 5ee127a..37e2e8a 100644 --- a/internal/model/dto/device_import_dto.go +++ b/internal/model/dto/device_import_dto.go @@ -5,7 +5,7 @@ import "time" type ImportDeviceRequest struct { BatchNo string `json:"batch_no" validate:"omitempty,max=100" maxLength:"100" description:"批次号"` FileKey string `json:"file_key" validate:"required,min=1,max=500" required:"true" minLength:"1" maxLength:"500" description:"对象存储文件路径(通过 /storage/upload-url 获取)"` - RealnamePolicy string `json:"realname_policy" validate:"omitempty,oneof=none before_order after_order" description:"实名认证策略 (none:无需实名, before_order:先实名后充值/购买, after_order:先充值/购买后实名),默认 none"` + RealnamePolicy string `json:"realname_policy" validate:"omitempty,oneof=none before_order after_order" description:"实名认证策略 (none:无需实名, before_order:先实名后充值/购买, after_order:先充值/购买后实名),默认 after_order"` } type ImportDeviceResponse struct { diff --git a/internal/model/dto/iot_card_dto.go b/internal/model/dto/iot_card_dto.go index 582d0c4..63795ef 100644 --- a/internal/model/dto/iot_card_dto.go +++ b/internal/model/dto/iot_card_dto.go @@ -70,7 +70,7 @@ type ImportIotCardRequest struct { BatchNo string `json:"batch_no" validate:"omitempty,max=100" maxLength:"100" description:"批次号"` FileKey string `json:"file_key" validate:"required,min=1,max=500" required:"true" minLength:"1" maxLength:"500" description:"对象存储文件路径(通过 /storage/upload-url 获取)"` CardCategory string `json:"card_category" validate:"omitempty,oneof=normal industry" description:"卡业务类型 (normal:普通卡, industry:行业卡),默认 normal"` - RealnamePolicy string `json:"realname_policy" validate:"omitempty,oneof=none before_order after_order" description:"实名认证策略 (none:无需实名, before_order:先实名后充值/购买, after_order:先充值/购买后实名),默认 none"` + RealnamePolicy string `json:"realname_policy" validate:"omitempty,oneof=none before_order after_order" description:"实名认证策略 (none:无需实名, before_order:先实名后充值/购买, after_order:先充值/购买后实名),默认 after_order"` } type ImportIotCardResponse struct {