Documentation ¶
Overview ¶
admin:后台管理接口
Index ¶
- Constants
- Variables
- func GetJwtData(jwtToken string) (map[string]interface{}, error)
- func GroupDel(w http.ResponseWriter, r *http.Request)
- func GroupDetail(w http.ResponseWriter, r *http.Request)
- func GroupList(w http.ResponseWriter, r *http.Request)
- func GroupNames(w http.ResponseWriter, r *http.Request)
- func GroupSet(w http.ResponseWriter, r *http.Request)
- func Login(w http.ResponseWriter, r *http.Request)
- func RespData(w http.ResponseWriter, data interface{}, err error)
- func RespError(w http.ResponseWriter, respCode int, errS ...interface{})
- func RespSucess(w http.ResponseWriter, data interface{})
- func SendMail(subject, to, htmlBody string) error
- func SetHome(w http.ResponseWriter, r *http.Request)
- func SetJwtData(data map[string]interface{}, expiresAt int64) (string, error)
- func SetOther(w http.ResponseWriter, r *http.Request)
- func SetOtherEdit(w http.ResponseWriter, r *http.Request)
- func SetOtherSmtp(w http.ResponseWriter, r *http.Request)
- func SetOtherSmtpEdit(w http.ResponseWriter, r *http.Request)
- func SetSoft(w http.ResponseWriter, r *http.Request)
- func StartAdmin()
- func UserDel(w http.ResponseWriter, r *http.Request)
- func UserDetail(w http.ResponseWriter, r *http.Request)
- func UserIpMapDel(w http.ResponseWriter, r *http.Request)
- func UserIpMapDetail(w http.ResponseWriter, r *http.Request)
- func UserIpMapList(w http.ResponseWriter, r *http.Request)
- func UserIpMapSet(w http.ResponseWriter, r *http.Request)
- func UserList(w http.ResponseWriter, r *http.Request)
- func UserOffline(w http.ResponseWriter, r *http.Request)
- func UserOnline(w http.ResponseWriter, r *http.Request)
- func UserOtpQr(w http.ResponseWriter, r *http.Request)
- func UserReline(w http.ResponseWriter, r *http.Request)
- func UserSet(w http.ResponseWriter, r *http.Request)
- type Resp
Constants ¶
View Source
const ( RespSuccess = 0 RespInternalErr = 1 RespTokenErr = 2 RespUserOrPassErr = 3 RespParamErr = 4 )
返回码
Variables ¶
View Source
var RespMap = map[int]string{ RespTokenErr: "客户端TOKEN错误", RespUserOrPassErr: "用户名或密码错误", }
Functions ¶
func GetJwtData ¶
func GroupDetail ¶
func GroupDetail(w http.ResponseWriter, r *http.Request)
func GroupNames ¶
func GroupNames(w http.ResponseWriter, r *http.Request)
func RespData ¶
func RespData(w http.ResponseWriter, data interface{}, err error)
func RespError ¶
func RespError(w http.ResponseWriter, respCode int, errS ...interface{})
func RespSucess ¶
func RespSucess(w http.ResponseWriter, data interface{})
func SetOtherEdit ¶
func SetOtherEdit(w http.ResponseWriter, r *http.Request)
func SetOtherSmtp ¶
func SetOtherSmtp(w http.ResponseWriter, r *http.Request)
func SetOtherSmtpEdit ¶
func SetOtherSmtpEdit(w http.ResponseWriter, r *http.Request)
func UserDetail ¶
func UserDetail(w http.ResponseWriter, r *http.Request)
func UserIpMapDel ¶
func UserIpMapDel(w http.ResponseWriter, r *http.Request)
func UserIpMapDetail ¶
func UserIpMapDetail(w http.ResponseWriter, r *http.Request)
func UserIpMapList ¶
func UserIpMapList(w http.ResponseWriter, r *http.Request)
func UserIpMapSet ¶
func UserIpMapSet(w http.ResponseWriter, r *http.Request)
func UserOffline ¶
func UserOffline(w http.ResponseWriter, r *http.Request)
func UserReline ¶
func UserReline(w http.ResponseWriter, r *http.Request)
Types ¶
Click to show internal directories.
Click to hide internal directories.