🎨 优化迎新逻辑,引入资源概念

This commit is contained in:
李寻欢
2023-12-07 15:58:55 +08:00
parent 63d50b815c
commit 37bf8de132
11 changed files with 156 additions and 15 deletions

19
common/current/robot.go Normal file
View File

@@ -0,0 +1,19 @@
package current
import "go-wechat/model"
var robotInfo model.RobotUserInfo
// SetRobotInfo
// @description: 设置机器人信息
// @param info
func SetRobotInfo(info model.RobotUserInfo) {
robotInfo = info
}
// GetRobotInfo
// @description: 获取机器人信息
// @return model.RobotUserInfo
func GetRobotInfo() model.RobotUserInfo {
return robotInfo
}