This commit is contained in:
@@ -10,6 +10,33 @@ type WeComControlMappingItem struct {
|
||||
OptionMapping map[string]string `json:"option_mapping" description:"业务枚举值到企微选择项 key 的映射;非选择控件传空对象"`
|
||||
}
|
||||
|
||||
// InspectWeComTemplateRequest 检查企业微信审批模板请求。
|
||||
type InspectWeComTemplateRequest struct {
|
||||
TemplateID string `json:"template_id" validate:"required,min=1,max=128" description:"企微后台已创建模板 ID"`
|
||||
}
|
||||
|
||||
// InspectWeComTemplateParams 检查企业微信审批模板路径与请求参数。
|
||||
type InspectWeComTemplateParams struct {
|
||||
IDReq
|
||||
InspectWeComTemplateRequest
|
||||
}
|
||||
|
||||
// WeComTemplateControlResponse 企业微信审批模板控件响应。
|
||||
type WeComTemplateControlResponse struct {
|
||||
ID string `json:"id" description:"企微模板控件 ID"`
|
||||
Type string `json:"type" description:"企微模板控件类型"`
|
||||
Title string `json:"title" description:"企微模板控件标题"`
|
||||
Required bool `json:"required" description:"是否必填"`
|
||||
OptionKeys []string `json:"option_keys" description:"选择控件可用选项 key"`
|
||||
}
|
||||
|
||||
// WeComTemplateDetailResponse 企业微信审批模板详情响应。
|
||||
type WeComTemplateDetailResponse struct {
|
||||
TemplateID string `json:"template_id" description:"企微模板 ID"`
|
||||
Name string `json:"name" description:"企微模板名称"`
|
||||
Controls []WeComTemplateControlResponse `json:"controls" description:"可用于业务字段映射的模板控件"`
|
||||
}
|
||||
|
||||
// SaveWeComApprovalSceneRequest 保存企业微信审批场景请求。
|
||||
type SaveWeComApprovalSceneRequest struct {
|
||||
ApplicationID uint `json:"application_id" validate:"required,gt=0" description:"企业微信应用配置 ID"`
|
||||
|
||||
Reference in New Issue
Block a user