|
- package hdl
-
- import (
- "applet/app/comm/db"
- "applet/app/comm/e"
- svc2 "applet/app/comm/svc"
- "applet/app/operator/md"
- "applet/app/operator/svc"
- "github.com/gin-gonic/gin"
- )
-
- func Login(c *gin.Context) {
- svc.Login(c)
- }
- func FastLogin(c *gin.Context) {
- var args md.RegisterReq
- if err := c.ShouldBindJSON(&args); err != nil {
- e.OutErr(c, e.ERR_INVALID_ARGS)
- return
- }
- svc.Register(c, args)
- }
- func Sms(c *gin.Context) {
- svc.Sms(c)
- }
- func Base(c *gin.Context) {
- res := map[string]string{
- "enterprise_wechat_qrcode": svc2.ImageFormat(c, db.SysCfgGet(c, "camp_enterprise_wechat_qrcode")),
- "own_wechat_qrcode": svc2.ImageFormat(c, db.SysCfgGet(c, "camp_own_wechat_qrcode")),
- "icp_first_str": db.SysCfgGet(c, "camp_icp_first_str"),
- "icp_second_str": db.SysCfgGet(c, "camp_icp_second_str"),
- }
- e.OutSuc(c, res, nil)
- return
- }
|