Documentation
¶
Index ¶
- Variables
- func AmrConver(ctx echo.Context) error
- func ApplyChatRoomQrCode(ctx echo.Context) error
- func ApplyCode(ctx echo.Context) error
- func ApplyWorkTemplate(ctx echo.Context) error
- func ChatRoomKicking(ctx echo.Context) error
- func ChatRoomMemberJoinWelcome(ctx echo.Context) error
- func CmdTypeList(ctx echo.Context) error
- func CreateWorkTemplate(ctx echo.Context) error
- func DeleteRobotJoin(ctx echo.Context) error
- func EnusreWorkTemplateRule(work *models.WorkTemplate)
- func FetchApplyCode(db *gorm.DB, myId, subId, robotSerialNo, limit string) (*models.RobotApplyCode, error)
- func GetChatRoomInfo(ctx echo.Context) error
- func GetChatRoomTag(ctx echo.Context) error
- func GetChatRoomTemplates(ctx echo.Context) error
- func GetRobotJoinList(ctx echo.Context) error
- func GetValidRobot(ctx echo.Context) error
- func OpenChatRoom(ctx echo.Context) error
- func OverChatRoom(ctx echo.Context) error
- func OverChatRoomV2(ctx echo.Context) error
- func ParseOrder(db *gorm.DB, input interface{}, allow []string, def []string) *gorm.DB
- func ParseSearch(db *gorm.DB, input interface{}, allow []string) *gorm.DB
- func PyRobotLoginQr(ctx echo.Context) error
- func ReturnData(ctx echo.Context, data interface{}) error
- func ReturnError(ctx echo.Context, code string, err error) error
- func RobotAddUser(ctx echo.Context) error
- func SendMessage(ctx echo.Context) error
- func SendMessageV2(ctx echo.Context) error
- func SetWorkTemplateDefault(ctx echo.Context) error
- func SyncChats(ctx echo.Context) error
- func SyncRobots(ctx echo.Context) error
- func UpdateChatRoomRobotNickName(ctx echo.Context) error
- func UpdateRobotExpireTime(ctx echo.Context) error
- func UpdateRobotInfo(ctx echo.Context) error
- func UpdateWorkTemplate(ctx echo.Context) error
- func UploadQiuniu(filename string, data []byte) (storage.PutRet, error)
- func WorkTemplate(ctx echo.Context) error
- func WorkTemplateList(ctx echo.Context) error
- type PyRobotLoginQrInput
- type Result
- type ReturnType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CODEMAP map[string]string = map[string]string{ "000000": "", "100001": "my_id is empty", "100003": "log_serial_no invaild", "100007": "robot_serial_no is empty", } AmrConvertServer string = "http://127.0.0.1:8299" ChatBotClient *chatbot.Client MessagePublisher *rmqtool.PublisherTool )
View Source
var ( DB *gorm.DB //数据库 Logger *zap.Logger //日志 Client *uchatlib.UchatClient //uchat客户端 Tool *utils.ReceiveTool DefaultApplyCodeAddMinute string = "10" //默认验证码有效时间 )
Functions ¶
func ApplyChatRoomQrCode ¶
func ApplyCode ¶
RUSTAPI ApplyCode
`curl -vvv "http://host:prot/applycode" -X POST -d "my_id=xxx&sub_id=xxx"`
func ApplyWorkTemplate ¶
func ChatRoomKicking ¶
func CmdTypeList ¶
func CreateWorkTemplate ¶
func DeleteRobotJoin ¶
func EnusreWorkTemplateRule ¶
func EnusreWorkTemplateRule(work *models.WorkTemplate)
func FetchApplyCode ¶
func FetchApplyCode(db *gorm.DB, myId, subId, robotSerialNo, limit string) (*models.RobotApplyCode, error)
获取验证码
func GetChatRoomInfo ¶
func GetChatRoomTag ¶
func GetChatRoomTemplates ¶
func GetRobotJoinList ¶
func GetValidRobot ¶
func OpenChatRoom ¶
func OverChatRoom ¶
func OverChatRoomV2 ¶
func ParseOrder ¶
func PyRobotLoginQr ¶
func ReturnData ¶
func RobotAddUser ¶
func SendMessage ¶
func SendMessageV2 ¶
func SetWorkTemplateDefault ¶
func SyncRobots ¶
func UpdateRobotExpireTime ¶
func UpdateRobotInfo ¶
func UpdateWorkTemplate ¶
func WorkTemplate ¶
func WorkTemplateList ¶
Types ¶
type PyRobotLoginQrInput ¶
type ReturnType ¶
Click to show internal directories.
Click to hide internal directories.