Skip to content

Commit

Permalink
fix(work): response approval template import issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Matrix-X committed Jul 12, 2023
1 parent 53bcc05 commit a49ae9d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/work/oa/response/responseApprovalTemplate.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package response

import (
"github.com/ArtisanCloud/PowerWeChat/v3/src/kernel/power"
"github.com/ArtisanCloud/PowerWeChat/v3/src/kernel/response"
)

Expand All @@ -24,6 +23,11 @@ type Property struct {
UnPrint int `json:"un_print"`
}

type Config struct {
Type string `json:"type"`
Options []*Option `json:"options"`
}

type Value struct {
Text string `json:"text"`
Lang string `json:"lang"`
Expand All @@ -35,8 +39,8 @@ type Option struct {
}

type Control struct {
Property *Property `json:"property"`
Config *power.HashMap `json:"config"`
Property *Property `json:"property"`
Config *Config `json:"config"`
}

type TemplateContent struct {
Expand Down

0 comments on commit a49ae9d

Please sign in to comment.