更新密码找回uniapp
This commit is contained in:
1 parent
7f9a66da0f
commit
3fdda89833
1304 files changed
+3503
-26132
No files matched your search
@@ -14,12 +14,10 @@ import (
|
||||
beego "github.com/beego/beego/v2/server/web"
|
||||
)
|
||||
|
||||
// BackendSolutionController CMS 解决方案(特色服务)管理
|
||||
type BackendSolutionController struct {
|
||||
beego.Controller
|
||||
}
|
||||
|
||||
// BackendSolutionCategoryController CMS 解决方案分类管理
|
||||
type BackendSolutionCategoryController struct {
|
||||
beego.Controller
|
||||
}
|
||||
@@ -74,7 +72,6 @@ func cmsSolutionCateToMap(row models.CmsSolutionCategory) map[string]interface{}
|
||||
}
|
||||
}
|
||||
|
||||
// List GET /backend/servicesList
|
||||
func (c *BackendSolutionController) List() {
|
||||
claims, err := c.cmsClaims()
|
||||
if err != nil {
|
||||
@@ -140,7 +137,6 @@ type cmsSolutionPayload struct {
|
||||
Status int8 `json:"status"`
|
||||
}
|
||||
|
||||
// Create POST /backend/addServices
|
||||
func (c *BackendSolutionController) Create() {
|
||||
claims, err := c.cmsClaims()
|
||||
if err != nil {
|
||||
@@ -193,7 +189,6 @@ func (c *BackendSolutionController) Create() {
|
||||
_ = c.ServeJSON()
|
||||
}
|
||||
|
||||
// Update PUT /backend/editServices/:id
|
||||
func (c *BackendSolutionController) Update() {
|
||||
claims, err := c.cmsClaims()
|
||||
if err != nil {
|
||||
@@ -252,7 +247,6 @@ func (c *BackendSolutionController) Update() {
|
||||
_ = c.ServeJSON()
|
||||
}
|
||||
|
||||
// Delete DELETE /backend/deleteServices/:id
|
||||
func (c *BackendSolutionController) Delete() {
|
||||
claims, err := c.cmsClaims()
|
||||
if err != nil {
|
||||
@@ -286,7 +280,6 @@ func (c *BackendSolutionController) Delete() {
|
||||
_ = c.ServeJSON()
|
||||
}
|
||||
|
||||
// List GET /backend/servicesTypesList
|
||||
func (c *BackendSolutionCategoryController) List() {
|
||||
claims, err := c.cmsClaims()
|
||||
if err != nil {
|
||||
@@ -346,7 +339,6 @@ type cmsSolutionCategoryPayload struct {
|
||||
Sort int `json:"sort"`
|
||||
}
|
||||
|
||||
// Create POST /backend/addServicesTypes
|
||||
func (c *BackendSolutionCategoryController) Create() {
|
||||
claims, err := c.cmsClaims()
|
||||
if err != nil {
|
||||
@@ -397,7 +389,6 @@ func (c *BackendSolutionCategoryController) Create() {
|
||||
_ = c.ServeJSON()
|
||||
}
|
||||
|
||||
// Update PUT /backend/editServicesTypes/:id
|
||||
func (c *BackendSolutionCategoryController) Update() {
|
||||
claims, err := c.cmsClaims()
|
||||
if err != nil {
|
||||
@@ -457,7 +448,6 @@ func (c *BackendSolutionCategoryController) Update() {
|
||||
_ = c.ServeJSON()
|
||||
}
|
||||
|
||||
// Delete DELETE /backend/deleteServicesTypes/:id
|
||||
func (c *BackendSolutionCategoryController) Delete() {
|
||||
claims, err := c.cmsClaims()
|
||||
if err != nil {
|
||||
@@ -472,7 +462,6 @@ func (c *BackendSolutionCategoryController) Delete() {
|
||||
return
|
||||
}
|
||||
|
||||
// 存在子分类时不允许删除
|
||||
childCnt, _ := models.Orm.QueryTable(new(models.CmsSolutionCategory)).
|
||||
Filter("tid", tid).
|
||||
Filter("pid", id).
|
||||
|
||||
Reference in new issue
Block a user