package middleware

import (
	"github.com/kataras/iris/v12"
)

func MiddlewareAuth(ctx iris.Context) {
	/* response.JsonExit(ctx, msg.PrismaFindUniqueError, "12")
	return */

	// 获取用户
	ctx.Values().Set("userName", "aclice")

	ctx.Next()
}
