type mqttJSON struct {
	Id             int
	Username       string
	Password       string
	PublishTopic   string
	SubscribeTopic string
	Nickname       string
}

func (ggg KeepInTouch) MqttUsersAdd(ctx *gin.Context) {
	var mqttUsersJson = &mqttJSON{}
	if err := ctx.ShouldBindJSON(&mqttUsersJson); err != nil {
		ctx.String(200, "接收失败")
		return
	}
	username := mqttUsersJson.Username
	password := mqttUsersJson.Password
	publishTopic := mqttUsersJson.PublishTopic
	subscribeTopic := mqttUsersJson.SubscribeTopic
	nickname := mqttUsersJson.Nickname
	fmt.Println(username)
结构体 里面的 变量 首字母必须要大写