更新密码找回uniapp

This commit is contained in:
hero920103 committed 2026-11-16 17:22:50 +08:00
1 parent 7f9a66da0f
commit 3fdda89833
1304 files changed
+3503 -26132

No files matched your search

-11
View File
@@ -14,12 +14,10 @@ import (
beego "github.com/beego/beego/v2/server/web"
)
// BackendProductController CMS 产品管理
type BackendProductController struct {
beego.Controller
}
// BackendProductCategoryController CMS 产品分类管理
type BackendProductCategoryController struct {
beego.Controller
}
@@ -74,7 +72,6 @@ func cmsProductCateToMap(row models.CmsProductCategory) map[string]interface{} {
}
}
// List GET /backend/productsList
func (c *BackendProductController) List() {
claims, err := c.cmsClaims()
if err != nil {
@@ -140,7 +137,6 @@ type cmsProductPayload struct {
Status int8 `json:"status"`
}
// Create POST /backend/addProducts
func (c *BackendProductController) Create() {
claims, err := c.cmsClaims()
if err != nil {
@@ -193,7 +189,6 @@ func (c *BackendProductController) Create() {
_ = c.ServeJSON()
}
// Update PUT /backend/editProducts/:id
func (c *BackendProductController) Update() {
claims, err := c.cmsClaims()
if err != nil {
@@ -252,7 +247,6 @@ func (c *BackendProductController) Update() {
_ = c.ServeJSON()
}
// Delete DELETE /backend/deleteProducts/:id
func (c *BackendProductController) Delete() {
claims, err := c.cmsClaims()
if err != nil {
@@ -286,7 +280,6 @@ func (c *BackendProductController) Delete() {
_ = c.ServeJSON()
}
// List GET /backend/productsTypesList
func (c *BackendProductCategoryController) List() {
claims, err := c.cmsClaims()
if err != nil {
@@ -346,7 +339,6 @@ type cmsProductCategoryPayload struct {
Sort int `json:"sort"`
}
// Create POST /backend/addProductsTypes
func (c *BackendProductCategoryController) Create() {
claims, err := c.cmsClaims()
if err != nil {
@@ -397,7 +389,6 @@ func (c *BackendProductCategoryController) Create() {
_ = c.ServeJSON()
}
// Update PUT /backend/editProductsTypes/:id
func (c *BackendProductCategoryController) Update() {
claims, err := c.cmsClaims()
if err != nil {
@@ -457,7 +448,6 @@ func (c *BackendProductCategoryController) Update() {
_ = c.ServeJSON()
}
// Delete DELETE /backend/deleteProductsTypes/:id
func (c *BackendProductCategoryController) Delete() {
claims, err := c.cmsClaims()
if err != nil {
@@ -472,7 +462,6 @@ func (c *BackendProductCategoryController) Delete() {
return
}
// 存在子分类时不允许删除
childCnt, _ := models.Orm.QueryTable(new(models.CmsProductCategory)).
Filter("tid", tid).
Filter("pid", id).