model

package
v0.0.0-...-d39b972 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTextMessage

func NewTextMessage(content string) (json.RawMessage, error)

Types

type AccessTokenReqBody

type AccessTokenReqBody struct {
	AppID     string `json:"app_id"`
	AppSecret string `json:"app_secret"`
}

type SeatalkGetBotSubscriberListResponse

type SeatalkGetBotSubscriberListResponse struct {
	Code        int         `json:"code"`
	NextCursor  string      `json:"next_cursor"`
	Subscribers Subscribers `json:"subscribers"`
}

type SendToSubsRequestBody

type SendToSubsRequestBody struct {
	EmployeeCode string          `json:"employee_code"`
	Message      json.RawMessage `json:"message"`
}

type Subscribers

type Subscribers struct {
	EmployeeCodes []string `json:"employee_code"`
}

type Text

type Text struct {
	Content string `json:"content"`
}

type TextMessage

type TextMessage struct {
	Tag  string `json:"tag"`
	Text Text   `json:"text"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL