Documentation ¶
Index ¶
- Variables
- func BillingAction(lineId LineID, amount int, title string, note string) (billing.Billing, bot.LineBilling)
- func CalculateAmount(groupID string, amount float64) (float64, int)
- func GetFlexMessageByLineFeatureNotification(lfn *bot.LineFeatureNotification) ([]linebot.SendingMessage, error)
- func GetGroupMemberCount(groupID string) int
- func GetMessageContent(messageId string) (*linebot.MessageContentResponse, error)
- func GroupHandleReceiveImageMessage(lineId *LineID, messageContentResponse *linebot.MessageContentResponse) (interface{}, error)
- func GroupParsePostBackGenTemplate(lineId LineID, postBack *linebot.Postback) (interface{}, error)
- func GroupParseTextGenTemplate(lineId LineID, text string) (interface{}, error)
- func LinePushMessage(toID string, messages interface{}) error
- func LineReplyMessage(replyToken string, messages interface{})
- func NewNewRentHousesFlexTemplate(altText string, rhs []*rent_house.RentHouse) []linebot.SendingMessage
- func RefreshTodoByAfterPushDateTime() error
- func SetLineBot() *linebot.Client
- func UserParsePostBackGenTemplate(lineId LineID, postBack *linebot.Postback) (interface{}, error)
- func UserParseTextGenTemplate(lineId LineID, text string) (interface{}, error)
- type BillingStrategy
- type DatetimePickerActionMode
- type DefaultStrategy
- type GroupMemberLineAvatarStrategy
- type HelpStrategy
- type InfoStrategy
- type LineBilling
- type LineBotPushMessage
- type LineBotRequestService
- type LineID
- type LineMember
- type LinePostBackAction
- type LinePostBackActionParams
- type MemberLineAvatarStrategy
- type ProxyStrategy
- type RockPaperScissorStrategy
- type TextParsingStrategy
- type TodoStrategy
Constants ¶
This section is empty.
Variables ¶
View Source
var BotClient = SetLineBot()
Functions ¶
func BillingAction ¶
func GetFlexMessageByLineFeatureNotification ¶
func GetFlexMessageByLineFeatureNotification(lfn *bot.LineFeatureNotification) ([]linebot.SendingMessage, error)
func GetGroupMemberCount ¶
func GetMessageContent ¶
func GetMessageContent(messageId string) (*linebot.MessageContentResponse, error)
func GroupHandleReceiveImageMessage ¶
func GroupHandleReceiveImageMessage( lineId *LineID, messageContentResponse *linebot.MessageContentResponse, ) (interface{}, error)
func LinePushMessage ¶
func LineReplyMessage ¶
func LineReplyMessage(replyToken string, messages interface{})
func NewNewRentHousesFlexTemplate ¶
func NewNewRentHousesFlexTemplate(altText string, rhs []*rent_house.RentHouse) []linebot.SendingMessage
func RefreshTodoByAfterPushDateTime ¶
func RefreshTodoByAfterPushDateTime() error
func SetLineBot ¶
Types ¶
type BillingStrategy ¶
type BillingStrategy struct{}
type DatetimePickerActionMode ¶
type DatetimePickerActionMode string
const (
DatetimePickerActionModeDateTime DatetimePickerActionMode = "datetime"
)
type DefaultStrategy ¶
type DefaultStrategy struct{}
type GroupMemberLineAvatarStrategy ¶
type GroupMemberLineAvatarStrategy struct{}
type HelpStrategy ¶
type HelpStrategy struct{}
type InfoStrategy ¶
type InfoStrategy struct{}
type LineBilling ¶
type LineBilling struct { BillingID uint GroupID string RoomID string UserID string Billing billing.Billing Page service.Page }
func (*LineBilling) Add ¶
func (lb *LineBilling) Add() (LineBilling, error)
func (*LineBilling) Get ¶
func (lb *LineBilling) Get(where map[string]interface{}, not map[string]interface{}) ([]LineBilling, error)
type LineBotPushMessage ¶
type LineBotRequestService ¶
type LineBotRequestService struct { }
func (*LineBotRequestService) CreateOne ¶
func (lbrService *LineBotRequestService) CreateOne(attributes map[string]interface{}) (string, error)
func (*LineBotRequestService) Get ¶
func (lbrService *LineBotRequestService) Get(f map[string]interface{}) ([]modelBot.LineBotRequest, error)
type LineMember ¶
type LineMember struct { UserID string `json:"userId"` DisplayName string `json:"displayName"` PictureURL string `json:"pictureUrl"` StatusMessage string `json:"statusMessage"` Language string `json:"language"` }
func GetGroupMemberProfile ¶
func GetGroupMemberProfile(groupID string, userID string) (*LineMember, error)
type LinePostBackAction ¶
type LinePostBackAction struct { Action string Data map[string]interface{} Params LinePostBackActionParams }
type MemberLineAvatarStrategy ¶
type MemberLineAvatarStrategy struct{}
type ProxyStrategy ¶
type ProxyStrategy struct{}
type RockPaperScissorStrategy ¶
type RockPaperScissorStrategy struct{}
type TextParsingStrategy ¶
type TodoStrategy ¶
type TodoStrategy struct{}
Click to show internal directories.
Click to hide internal directories.