Documentation ¶
Index ¶
- type Approval
- func (a *Approval) Build() map[string]interface{}
- func (a *Approval) SetToCallbackValue(callbackValues []Value) Builder
- func (a *Approval) SetToFields(Fields []Field) Builder
- func (a *Approval) SetToHideForm(hideForm bool) Builder
- func (a *Approval) SetToTitle(title string) Builder
- func (a *Approval) SetWantResult(content string) Builder
- type Builder
- type Field
- type Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Approval ¶
type Approval struct { Fields []Field `json:"fields"` CallbackValue []Value `json:"callback_value"` HideForm bool `json:"hide_form"` Title string `json:"title"` WantContent string `json:"want_content"` }
func (*Approval) SetToCallbackValue ¶
func (*Approval) SetToFields ¶
func (*Approval) SetToHideForm ¶ added in v0.1.8
func (*Approval) SetToTitle ¶
func (*Approval) SetWantResult ¶ added in v0.1.9
type Builder ¶
type Builder interface { Build() map[string]interface{} SetToTitle(title string) Builder SetToFields(Fields []Field) Builder SetToHideForm(hideForm bool) Builder SetToCallbackValue(callbackValues []Value) Builder SetWantResult(content string) Builder }
func NewApprovalCardBuilder ¶
func NewApprovalCardBuilder() Builder
Click to show internal directories.
Click to hide internal directories.