mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-11-09 02:33:43 +08:00
更新2.1.2版本,优化部门、角色权限,增加上下级关系;增加登录、系统、短信日志;优化省市区编码
This commit is contained in:
@@ -32,12 +32,12 @@ type LoginReq struct {
|
||||
g.Meta `path:"/site/login" method:"post" tags:"后台基础" summary:"账号登录"`
|
||||
Username string `json:"username" v:"required#用户名不能为空" dc:"用户名"`
|
||||
Password string `json:"password" v:"required#密码不能为空" dc:"密码"`
|
||||
//Cid string `json:"cid" v:"required#验证码ID不能为空" dc:"验证码ID"`
|
||||
//Code string `json:"code" v:"required#验证码不能为空" dc:"验证码"`
|
||||
//Device string `json:"device" dc:"登录设备"`
|
||||
Cid string `json:"cid" dc:"验证码ID"`
|
||||
Code string `json:"code" dc:"验证码"`
|
||||
IsLock bool `json:"isLock" dc:"是否为锁屏状态"`
|
||||
}
|
||||
type LoginRes struct {
|
||||
adminin.MemberLoginModel
|
||||
*adminin.MemberLoginModel
|
||||
}
|
||||
|
||||
// SiteConfigReq 获取配置
|
||||
|
||||
19
server/api/backend/common/sms.go
Normal file
19
server/api/backend/common/sms.go
Normal file
@@ -0,0 +1,19 @@
|
||||
// Package common
|
||||
// @Link https://github.com/bufanyun/hotgo
|
||||
// @Copyright Copyright (c) 2022 HotGo CLI
|
||||
// @Author Ms <133814250@qq.com>
|
||||
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
|
||||
//
|
||||
package common
|
||||
|
||||
import "github.com/gogf/gf/v2/frame/g"
|
||||
|
||||
// SendTestSmsReq 发送测试短信
|
||||
type SendTestSmsReq struct {
|
||||
Event string `json:"event" v:"required#事件模板不能为空" dc:"事件模板"`
|
||||
Mobile string `json:"mobile" v:"required#接收手机号不能为空" dc:"接收手机号"`
|
||||
Code string `json:"code" v:"required#接收验证码不能为空" dc:"接收验证码"`
|
||||
g.Meta `path:"/sms/sendTest" tags:"短信" method:"post" summary:"发送测试短信"`
|
||||
}
|
||||
type SendTestSmsRes struct {
|
||||
}
|
||||
Reference in New Issue
Block a user