更新密码找回uniapp
This commit is contained in:
1 parent
7f9a66da0f
commit
3fdda89833
1304 files changed
+3503
-26132
No files matched your search
@@ -21,7 +21,6 @@ type AppNotebookController struct {
|
||||
beego.Controller
|
||||
}
|
||||
|
||||
// 放行移动端、租户端与游客令牌:游客调用时不进业务表,分流到 gueststore。
|
||||
func (c *AppNotebookController) appNotebookClaims() (*jwtutil.Claims, error) {
|
||||
return identity.Claims(c.Ctx.Request.Header.Get("Authorization"), identity.EndApp, identity.EndBackend, identity.EndGuest)
|
||||
}
|
||||
@@ -37,7 +36,6 @@ func (c *AppNotebookController) nbOk(data interface{}) {
|
||||
_ = c.ServeJSON()
|
||||
}
|
||||
|
||||
// GetList GET /app/notebook/list
|
||||
func (c *AppNotebookController) GetList() {
|
||||
claims, err := c.appNotebookClaims()
|
||||
if err != nil {
|
||||
@@ -102,7 +100,6 @@ func (c *AppNotebookController) GetList() {
|
||||
})
|
||||
}
|
||||
|
||||
// GetDetail GET /app/notebook/:id
|
||||
func (c *AppNotebookController) GetDetail() {
|
||||
claims, err := c.appNotebookClaims()
|
||||
if err != nil {
|
||||
@@ -148,7 +145,6 @@ func (c *AppNotebookController) GetDetail() {
|
||||
})
|
||||
}
|
||||
|
||||
// Create POST /app/notebook
|
||||
func (c *AppNotebookController) Create() {
|
||||
claims, err := c.appNotebookClaims()
|
||||
if err != nil {
|
||||
@@ -212,7 +208,6 @@ func (c *AppNotebookController) Create() {
|
||||
})
|
||||
}
|
||||
|
||||
// Update PUT /app/notebook/:id
|
||||
func (c *AppNotebookController) Update() {
|
||||
claims, err := c.appNotebookClaims()
|
||||
if err != nil {
|
||||
@@ -294,7 +289,6 @@ func (c *AppNotebookController) Update() {
|
||||
})
|
||||
}
|
||||
|
||||
// Delete DELETE /app/notebook/:id
|
||||
func (c *AppNotebookController) Delete() {
|
||||
claims, err := c.appNotebookClaims()
|
||||
if err != nil {
|
||||
@@ -348,7 +342,6 @@ func (c *AppNotebookController) Delete() {
|
||||
c.nbOk(nil)
|
||||
}
|
||||
|
||||
// TogglePin POST /app/notebook/:id/togglePin
|
||||
func (c *AppNotebookController) TogglePin() {
|
||||
claims, err := c.appNotebookClaims()
|
||||
if err != nil {
|
||||
@@ -402,9 +395,6 @@ func (c *AppNotebookController) TogglePin() {
|
||||
})
|
||||
}
|
||||
|
||||
// ---------- 游客分支(免登录态):数据存 yz_guest_data,响应结构与登录态一致 ----------
|
||||
|
||||
// guestNoteFull 读取并补全一条游客笔记(ID/时间以存储行为准)。
|
||||
func guestNoteFull(r gueststore.Row) guestNoteItem {
|
||||
var it guestNoteItem
|
||||
if json.Unmarshal(r.Payload, &it) != nil {
|
||||
@@ -433,7 +423,6 @@ func (c *AppNotebookController) guestList(claims *jwtutil.Claims, keyword string
|
||||
}
|
||||
items = append(items, it)
|
||||
}
|
||||
// 与登录态一致:置顶优先,再按更新时间倒序
|
||||
sort.SliceStable(items, func(i, j int) bool {
|
||||
if items[i].Pinned != items[j].Pinned {
|
||||
return items[i].Pinned
|
||||
|
||||
Reference in new issue
Block a user