You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
490 B
Go

/**
* @Author: jager
* @Email: lhj168os@gmail.com
* @File: soup
* @Date: 2021/12/31 2:44 下午
* @package: soup
* @Version: v1.0.0
*
* @Description:
*
*/
package soup
import (
"github.com/gin-gonic/gin"
"github.com/jageros/hawox/httpx"
"idata/internal/apity"
"idata/internal/service/user"
)
func GetRandSoup(ctx *gin.Context) {
if !user.Auth(ctx, apity.Soup) {
return
}
text := getContent()
httpx.PkgMsgWrite(ctx, map[string]interface{}{"context": text})
}