| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- package partial
- import (
- "git.qianqiusoft.com/qianqiusoft/light-apiengine/entitys"
- sysmodel "git.qianqiusoft.com/qianqiusoft/light-apiengine/models"
- //sysutils "git.qianqiusoft.com/qianqiusoft/light-apiengine/utils"
- "git.qianqiusoft.com/qianqiusoft/light-apiengine/models"
- )
- // _Login
- // @Title _Login
- // @Description 用户登录
- // @Param logininfo false "登录信息"
- // @Success 200 {object} Account
- // @Failure 403 :id is empty
- func Sso_Login(c *entitys.CtrlContext) {
- var paramObj0 models.LoginInfo
- c.Ctx.BindJSON(¶mObj0)
- ret := __none_func_sso__(paramObj0)
- if ret {
- c.Ctx.JSON(200, sysmodel.SysReturn{200, "", nil})
- }else{
- c.Ctx.JSON(500, sysmodel.SysReturn{500, "", nil})
- }
- }
- // _Logout
- // @Title _Logout
- // @Description 用户退出
- // @Success 200 {object} Account
- // @Failure 403 :id is empty
- func Sso_Logout(c *entitys.CtrlContext) {
-
- ret := __none_func_sso__()
- if ret {
- c.Ctx.JSON(200, sysmodel.SysReturn{200, "", nil})
- }else{
- c.Ctx.JSON(500, sysmodel.SysReturn{500, "", nil})
- }
- }
- func __none_func_sso__(params ... interface{}) bool{
- return true
- }
|