更新密码找回uniapp
This commit is contained in:
1 parent
7f9a66da0f
commit
3fdda89833
1304 files changed
+3503
-26132
No files matched your search
@@ -15,9 +15,6 @@ import (
|
||||
beego "github.com/beego/beego/v2/server/web"
|
||||
)
|
||||
|
||||
// BackendCrmPoolController 客户公海控制器
|
||||
// 公海语义:in_pool=1 的客户处于公海中(租户共享,无个人负责人);
|
||||
// 移入公海会置 in_pool=1 并释放负责人,领取/分配/移出会置 in_pool=0 并绑定负责人。
|
||||
type BackendCrmPoolController struct {
|
||||
beego.Controller
|
||||
}
|
||||
@@ -37,7 +34,6 @@ func (c *BackendCrmPoolController) poolOk(data interface{}) {
|
||||
_ = c.ServeJSON()
|
||||
}
|
||||
|
||||
// List GET /backend/crm/pool/list 公海列表(无负责人、租户内共享)
|
||||
func (c *BackendCrmPoolController) List() {
|
||||
claims, err := c.poolClaims()
|
||||
if err != nil {
|
||||
@@ -99,7 +95,6 @@ func (c *BackendCrmPoolController) List() {
|
||||
})
|
||||
}
|
||||
|
||||
// Move POST /backend/crm/pool/move 移入公海:释放负责人,记录原负责人与原因
|
||||
func (c *BackendCrmPoolController) Move() {
|
||||
claims, err := c.poolClaims()
|
||||
if err != nil {
|
||||
@@ -138,7 +133,6 @@ func (c *BackendCrmPoolController) Move() {
|
||||
if err != nil {
|
||||
continue
|
||||
}
|
||||
// 记录原负责人(移入公海前的负责人),再清空负责人并置入公海
|
||||
cust.LastOwnerName = cust.OwnerUserName
|
||||
cust.OwnerUserID = ""
|
||||
cust.OwnerUserName = ""
|
||||
@@ -155,7 +149,6 @@ func (c *BackendCrmPoolController) Move() {
|
||||
c.poolOk(map[string]interface{}{"updated": updated})
|
||||
}
|
||||
|
||||
// Claim POST /backend/crm/pool/claim 领取:将公海客户归属为当前登录用户
|
||||
func (c *BackendCrmPoolController) Claim() {
|
||||
claims, err := c.poolClaims()
|
||||
if err != nil {
|
||||
@@ -203,7 +196,6 @@ func (c *BackendCrmPoolController) Claim() {
|
||||
c.poolOk(map[string]interface{}{"updated": updated})
|
||||
}
|
||||
|
||||
// Assign POST /backend/crm/pool/assign 分配:将公海客户分配给指定负责人
|
||||
func (c *BackendCrmPoolController) Assign() {
|
||||
claims, err := c.poolClaims()
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user