Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { Secret string AccessToken string ZapLog *zap.Logger // 日志服务 Db *gorm.DB // 关系数据库服务 RDb *redis.Client // 缓存数据库服务 MDb *mongo.Client // 非关系数据库服务 }
func (*App) NewParamsWith ¶
func (*App) RobotSend ¶
func (app *App) RobotSend(notMustParams ...Params) *RobotSendResult
RobotSend 自定义机器人 https://open.dingtalk.com/document/group/custom-robot-access
type RobotSendResponse ¶
type RobotSendResult ¶
type RobotSendResult struct { Result RobotSendResponse // 结果 Body []byte // 内容 Err error // 错误 }
func NewRobotSendResult ¶
func NewRobotSendResult(result RobotSendResponse, body []byte, err error) *RobotSendResult
Click to show internal directories.
Click to hide internal directories.