article.go 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596
  1. package controllers
  2. import (
  3. "encoding/json"
  4. "hongze/hongze_cygx/models"
  5. "hongze/hongze_cygx/services"
  6. "hongze/hongze_cygx/utils"
  7. "html"
  8. "regexp"
  9. "strconv"
  10. "strings"
  11. "time"
  12. )
  13. type ArticleController struct {
  14. BaseAuthController
  15. }
  16. type ArticleCommonController struct {
  17. BaseCommonController
  18. }
  19. // @Title 获取报告详情
  20. // @Description 获取报告详情接口
  21. // @Param ArticleId query int true "报告ID"
  22. // @Success 200 {object} models.ArticleDetailResp
  23. // @router /detail [get]
  24. func (this *ArticleController) Detail() {
  25. br := new(models.BaseResponse).Init()
  26. defer func() {
  27. this.Data["json"] = br
  28. this.ServeJSON()
  29. }()
  30. user := this.User
  31. if user == nil {
  32. br.Msg = "请登录"
  33. br.ErrMsg = "请登录,用户信息为空"
  34. br.Ret = 408
  35. return
  36. }
  37. uid := user.UserId
  38. articleId, err := this.GetInt("ArticleId")
  39. if articleId <= 0 {
  40. br.Msg = "文章不存在"
  41. br.ErrMsg = "文章不存在,文章ID错误"
  42. return
  43. }
  44. detail := new(models.ArticleDetail)
  45. hasPermission := 0
  46. hasFree := 0
  47. //判断是否已经申请过
  48. applyCount, err := models.GetApplyRecordCount(uid)
  49. if err != nil && err.Error() != utils.ErrNoRow() {
  50. br.Msg = "获取信息失败"
  51. br.ErrMsg = "判断是否已申请过试用失败,Err:" + err.Error()
  52. return
  53. }
  54. //`description:"1:有该行业权限,正常展示,2:无该行业权限,不存在权益客户下,3:无该品类权限,4:潜在客户,未提交过申请,5:潜在客户,已提交过申请"`
  55. if user.CompanyId > 1 {
  56. companyPermission, err := models.GetCompanyPermission(user.CompanyId)
  57. if err != nil {
  58. br.Msg = "获取信息失败"
  59. br.ErrMsg = "判断是否已申请访谈失败,Err:" + strconv.Itoa(uid) + ";articleId" + strconv.Itoa(articleId)
  60. return
  61. }
  62. detail, err = models.GetArticleDetailById(articleId)
  63. if err != nil {
  64. br.Msg = "获取信息失败"
  65. br.ErrMsg = "获取信息失败,Err:" + err.Error()
  66. return
  67. }
  68. detail.Body = html.UnescapeString(detail.Body)
  69. //detail.Abstract = html.UnescapeString(detail.Abstract)
  70. detail.Abstract, _ = services.GetReportContentTextSub(detail.Abstract)
  71. if companyPermission == "" {
  72. if applyCount > 0 {
  73. hasPermission = 5
  74. } else {
  75. hasPermission = 2
  76. }
  77. hasFree = 2
  78. goto Loop
  79. } else {
  80. hasFree = 1
  81. // 原有的权限校验 更改于 2021-05-18
  82. //articlePermission, err := models.GetArticlePermission(detail.SubCategoryName)
  83. //fmt.Println(articlePermission)
  84. //fmt.Println(detail.SubCategoryName)
  85. //if err != nil {
  86. // br.Msg = "获取信息失败"
  87. // br.ErrMsg = "获取报告权限失败,Err:" + err.Error() + strconv.Itoa(uid) + ";articleId" + strconv.Itoa(articleId)
  88. // return
  89. //}
  90. //if articlePermission == nil {
  91. // br.Msg = "获取信息失败"
  92. // br.ErrMsg = "报告权限不存在,Err:" + strconv.Itoa(uid) + ";articleId" + strconv.Itoa(articleId)
  93. // return
  94. //}
  95. //for _, p := range articlePermission {
  96. // if strings.Contains(companyPermission, p.PermissionName) {
  97. // hasPermission = 1
  98. // historyRecord := new(models.CygxArticleHistoryRecord)
  99. // historyRecord.UserId = uid
  100. // historyRecord.ArticleId = articleId
  101. // historyRecord.CreateTime = time.Now()
  102. // historyRecord.Mobile = user.Mobile
  103. // historyRecord.Email = user.Email
  104. // historyRecord.CompanyId = user.CompanyId
  105. // historyRecord.CompanyName = user.CompanyName
  106. // go models.AddCygxArticleHistoryRecord(historyRecord)
  107. // break
  108. // } else { //无该行业权限
  109. // hasPermission = 3
  110. // }
  111. //}
  112. var articlePermissionPermissionName string
  113. if detail.CategoryId > 0 {
  114. articlePermission, err := models.GetArticlePermission(detail.CategoryId)
  115. if err != nil {
  116. br.Msg = "获取信息失败"
  117. br.ErrMsg = "获取报告权限失败,Err:" + err.Error() + strconv.Itoa(uid) + ";articleId" + strconv.Itoa(articleId)
  118. return
  119. }
  120. if articlePermission == nil {
  121. br.Msg = "获取信息失败"
  122. br.ErrMsg = "报告权限不存在,Err:" + strconv.Itoa(uid) + ";articleId" + strconv.Itoa(articleId)
  123. return
  124. }
  125. articlePermissionPermissionName = articlePermission.PermissionName
  126. } else {
  127. articlePermissionPermissionName = detail.CategoryName
  128. }
  129. if strings.Contains(companyPermission, articlePermissionPermissionName) {
  130. hasPermission = 1
  131. recordCount, _ := models.GetNoAddStoptimeArticleCount(uid, articleId)
  132. if recordCount < 1 {
  133. historyRecord := new(models.CygxArticleHistoryRecord)
  134. historyRecord.UserId = uid
  135. historyRecord.ArticleId = articleId
  136. historyRecord.CreateTime = time.Now()
  137. historyRecord.Mobile = user.Mobile
  138. historyRecord.Email = user.Email
  139. historyRecord.CompanyId = user.CompanyId
  140. historyRecord.CompanyName = user.CompanyName
  141. go models.AddCygxArticleHistoryRecord(historyRecord)
  142. }
  143. } else { //无该行业权限
  144. hasPermission = 3
  145. }
  146. if hasPermission == 1 {
  147. key := "CYGX_ARTICLE_" + strconv.Itoa(articleId) + "_" + strconv.Itoa(uid)
  148. if !utils.Rc.IsExist(key) {
  149. //新增浏览记录
  150. record := new(models.CygxArticleViewRecord)
  151. record.UserId = uid
  152. record.ArticleId = articleId
  153. record.CreateTime = time.Now()
  154. record.Mobile = user.Mobile
  155. record.Email = user.Email
  156. record.CompanyId = user.CompanyId
  157. record.CompanyName = user.CompanyName
  158. go models.AddCygxArticleViewRecord(record)
  159. utils.Rc.Put(key, 1, 5*time.Second)
  160. models.ModifyReportLastViewTime(uid)
  161. }
  162. }
  163. }
  164. collectCount, err := models.GetArticleCollectCount(uid, articleId)
  165. if err != nil && err.Error() != utils.ErrNoRow() {
  166. br.Msg = "获取信息失败"
  167. br.ErrMsg = "判断是否已收藏失败,Err:" + strconv.Itoa(uid) + ";articleId" + strconv.Itoa(articleId)
  168. return
  169. }
  170. if collectCount > 0 {
  171. detail.IsCollect = true
  172. }
  173. interviewApplyItem, err := models.GetArticleInterviewApply(uid, articleId)
  174. if err != nil && err.Error() != utils.ErrNoRow() {
  175. br.Msg = "获取信息失败"
  176. br.ErrMsg = "判断是否已申请访谈失败,Err:" + strconv.Itoa(uid) + ";articleId" + strconv.Itoa(articleId)
  177. return
  178. }
  179. if interviewApplyItem != nil && interviewApplyItem.InterviewApplyId > 0 {
  180. detail.IsInterviewApply = true
  181. detail.InterviewApplyStatus = interviewApplyItem.Status
  182. }
  183. //获取销售手机号
  184. sellerItem, err := models.GetSellerByCompanyId(user.CompanyId)
  185. if err != nil {
  186. br.Msg = "获取信息失败"
  187. br.ErrMsg = "获取销售数据失败,Err:" + strconv.Itoa(uid) + ";articleId" + strconv.Itoa(articleId)
  188. return
  189. }
  190. if sellerItem != nil {
  191. detail.SellerMobile = sellerItem.Mobile
  192. detail.SellerName = sellerItem.RealName
  193. }
  194. sellerList, err := models.GetSellerList(articleId)
  195. if err != nil {
  196. br.Msg = "获取信息失败"
  197. br.ErrMsg = "获取销售数据失败,Err:" + err.Error() + strconv.Itoa(uid) + ";articleId" + strconv.Itoa(articleId)
  198. return
  199. }
  200. if detail.ArticleId > 1000000 {
  201. var hrefRegexp = regexp.MustCompile("[0-9]\\d*")
  202. match := hrefRegexp.FindAllString(detail.SellerAndMobile, -1)
  203. if match != nil {
  204. for _, v := range match {
  205. sellerAndMobile := &models.SellerRep{
  206. SellerMobile: v,
  207. SellerName: strings.Replace(detail.SellerAndMobile, v, "", -1),
  208. }
  209. sellerList = append(sellerList, sellerAndMobile)
  210. }
  211. }
  212. }
  213. detail.SellerList = sellerList
  214. } else { //潜在客户
  215. if applyCount > 0 {
  216. hasPermission = 5
  217. } else {
  218. hasPermission = 4
  219. }
  220. }
  221. Loop:
  222. if hasPermission != 1 {
  223. detail.Body = ""
  224. detail.BodyText = ""
  225. }
  226. resp := new(models.ArticleDetailResp)
  227. resp.HasPermission = hasPermission
  228. resp.HasFree = hasFree
  229. resp.Detail = detail
  230. br.Ret = 200
  231. br.Success = true
  232. br.Msg = "获取成功"
  233. br.Data = resp
  234. }
  235. // @Title 收藏
  236. // @Description 收藏
  237. // @Param request body models.ArticleCollectReq true "type json string"
  238. // @Success 200 {object} models.FontsCollectResp
  239. // @router /collect [post]
  240. func (this *ArticleController) ArticleCollect() {
  241. br := new(models.BaseResponse).Init()
  242. defer func() {
  243. this.Data["json"] = br
  244. this.ServeJSON()
  245. }()
  246. user := this.User
  247. if user == nil {
  248. br.Msg = "请重新登录"
  249. br.Ret = 408
  250. return
  251. }
  252. uid := user.UserId
  253. var req models.ArticleCollectReq
  254. err := json.Unmarshal(this.Ctx.Input.RequestBody, &req)
  255. if err != nil {
  256. br.Msg = "参数解析异常!"
  257. br.ErrMsg = "参数解析失败,Err:" + err.Error()
  258. return
  259. }
  260. count, err := models.GetArticleCollectCount(uid, req.ArticleId)
  261. if err != nil {
  262. br.Msg = "获取数据失败!"
  263. br.ErrMsg = "获取数据失败,Err:" + err.Error()
  264. return
  265. }
  266. resp := new(models.ArticleCollectResp)
  267. if count <= 0 {
  268. item := new(models.CygxArticleCollect)
  269. item.ArticleId = req.ArticleId
  270. item.UserId = uid
  271. item.CreateTime = time.Now()
  272. _, err = models.AddCygxArticleCollect(item)
  273. if err != nil {
  274. br.Msg = "收藏失败"
  275. br.ErrMsg = "收藏失败,Err:" + err.Error()
  276. return
  277. }
  278. br.Msg = "收藏成功"
  279. resp.Status = 1
  280. } else {
  281. err = models.RemoveArticleCollect(uid, req.ArticleId)
  282. if err != nil {
  283. br.Msg = "取消收藏失败"
  284. br.ErrMsg = "取消收藏失败,Err:" + err.Error()
  285. return
  286. }
  287. br.Msg = "已取消收藏"
  288. resp.Status = 2
  289. }
  290. collectTotal, err := models.GetArticleCollectUsersCount(req.ArticleId)
  291. if err != nil {
  292. br.Msg = "获取数据失败"
  293. br.ErrMsg = "获取数据失败,Err:" + err.Error()
  294. return
  295. }
  296. resp.CollectCount = collectTotal
  297. br.Ret = 200
  298. br.Success = true
  299. br.Data = resp
  300. }
  301. // @Title 访谈申请
  302. // @Description 访谈申请
  303. // @Param request body models.ArticleInterviewApplyReq true "type json string"
  304. // @Success 200 {object} models.FontsCollectResp
  305. // @router /interview/apply [post]
  306. func (this *ArticleController) InterviewApply() {
  307. br := new(models.BaseResponse).Init()
  308. defer func() {
  309. this.Data["json"] = br
  310. this.ServeJSON()
  311. }()
  312. user := this.User
  313. if user == nil {
  314. br.Msg = "请重新登录"
  315. br.Ret = 408
  316. return
  317. }
  318. uid := user.UserId
  319. var req models.ArticleInterviewApplyReq
  320. err := json.Unmarshal(this.Ctx.Input.RequestBody, &req)
  321. if err != nil {
  322. br.Msg = "参数解析异常!"
  323. br.ErrMsg = "参数解析失败,Err:" + err.Error()
  324. return
  325. }
  326. article, err := models.GetArticleDetailById(req.ArticleId)
  327. if err != nil {
  328. br.Msg = "获取纪要失败!"
  329. br.ErrMsg = "获取纪要失败,Err:" + err.Error()
  330. return
  331. }
  332. count, err := models.GetArticleInterviewApplyCount(uid, req.ArticleId)
  333. if err != nil {
  334. br.Msg = "获取数据失败!"
  335. br.ErrMsg = "获取数据失败,Err:" + err.Error()
  336. return
  337. }
  338. resp := new(models.ArticleInterviewApplyResp)
  339. if count <= 0 {
  340. item := new(models.CygxInterviewApply)
  341. item.ArticleId = req.ArticleId
  342. item.UserId = uid
  343. item.CompanyId = user.CompanyId
  344. item.Status = "待邀请"
  345. item.Sort = 1
  346. item.ArticleTitle = article.Title
  347. item.CreateTime = time.Now()
  348. item.ModifyTime = time.Now()
  349. item.ArticleIdMd5 = article.ArticleIdMd5
  350. _, err = models.AddCygxInterviewApply(item)
  351. if err != nil {
  352. br.Msg = "申请失败"
  353. br.ErrMsg = "申请失败,Err:" + err.Error()
  354. return
  355. }
  356. br.Msg = "申请成功"
  357. resp.Status = 1
  358. //发送模板消息
  359. if user.CompanyId > 1 {
  360. mobile := user.Mobile
  361. if mobile == "" {
  362. mobile = user.Email
  363. }
  364. sellerItem, _ := models.GetSellerByCompanyId(user.CompanyId)
  365. if sellerItem != nil && sellerItem.AdminId > 0 && user.Mobile != "" {
  366. openIpItem, _ := models.GetUserRecordByUserId(sellerItem.UserId, 1)
  367. if openIpItem != nil && openIpItem.OpenId != "" {
  368. go services.SendInterviewApplyTemplateMsg(user.RealName, sellerItem.CompanyName, mobile, article.Title, openIpItem.OpenId)
  369. }
  370. }
  371. }
  372. } else {
  373. err = models.RemoveArticleInterviewApply(uid, req.ArticleId)
  374. if err != nil {
  375. br.Msg = "取消申请失败"
  376. br.ErrMsg = "取消申请失败,Err:" + err.Error()
  377. return
  378. }
  379. br.Msg = "已取消申请"
  380. resp.Status = 2
  381. if user.CompanyId > 1 {
  382. mobile := user.Mobile
  383. if mobile == "" {
  384. mobile = user.Email
  385. }
  386. sellerItem, _ := models.GetSellerByCompanyId(user.CompanyId)
  387. if sellerItem != nil && sellerItem.AdminId > 0 && user.Mobile != "" {
  388. openIpItem, _ := models.GetUserRecordByUserId(sellerItem.UserId, 1)
  389. if openIpItem != nil && openIpItem.OpenId != "" {
  390. go services.SendInterviewApplyCancelTemplateMsg(user.RealName, sellerItem.CompanyName, mobile, article.Title, openIpItem.OpenId)
  391. }
  392. }
  393. }
  394. }
  395. br.Ret = 200
  396. br.Success = true
  397. br.Data = resp
  398. }
  399. // @Title 获取报告详情
  400. // @Description 获取报告详情接口
  401. // @Param ArticleIdMd5 query int true "报告ID"
  402. // @Success 200 {object} models.ArticleDetailResp
  403. // @router /look/detail [get]
  404. func (this *ArticleCommonController) Detail() {
  405. br := new(models.BaseResponse).Init()
  406. defer func() {
  407. this.Data["json"] = br
  408. this.ServeJSON()
  409. }()
  410. articleIdMd5 := this.GetString("ArticleIdMd5")
  411. if articleIdMd5 == "" {
  412. br.Msg = "参数错误"
  413. br.ErrMsg = "参数错误"
  414. return
  415. }
  416. resp := new(models.ArticleDetailResp)
  417. detail, err := models.GetArticleDetailByIdMd5(articleIdMd5)
  418. if err != nil && err.Error() != utils.ErrNoRow() {
  419. br.Msg = "获取信息失败"
  420. br.ErrMsg = "获取信息失败,Err:" + err.Error()
  421. return
  422. }
  423. if detail == nil {
  424. resp.HasPermission = 2
  425. } else {
  426. resp.HasPermission = 1
  427. }
  428. if detail != nil {
  429. detail.Body = html.UnescapeString(detail.Body)
  430. detail.Abstract = html.UnescapeString(detail.Abstract)
  431. }
  432. sellerList, err := models.GetSellerList(detail.ArticleId)
  433. if err != nil {
  434. br.Msg = "获取信息失败"
  435. br.ErrMsg = "获取销售数据失败,Err:" + err.Error() + ";articleId" + strconv.Itoa(detail.ArticleId)
  436. return
  437. }
  438. if detail.ArticleId > 1000000 {
  439. var hrefRegexp = regexp.MustCompile("[0-9]\\d*")
  440. match := hrefRegexp.FindAllString(detail.SellerAndMobile, -1)
  441. if match != nil {
  442. for _, v := range match {
  443. sellerAndMobile := &models.SellerRep{
  444. SellerMobile: v,
  445. SellerName: strings.Replace(detail.SellerAndMobile, v, "", -1),
  446. }
  447. sellerList = append(sellerList, sellerAndMobile)
  448. }
  449. }
  450. }
  451. detail.SellerList = sellerList
  452. resp.Detail = detail
  453. br.Ret = 200
  454. br.Success = true
  455. br.Msg = "获取成功"
  456. br.Data = resp
  457. }
  458. // @Title 上传文章阅读时间
  459. // @Description 上传文章阅读时间接口
  460. // @Param request body models.AddStopTimeRep true "type json string"
  461. // @Success 200 {object} models.ArticleDetailResp
  462. // @router /addStopTime [post]
  463. func (this *ArticleController) AddStopTime() {
  464. br := new(models.BaseResponse).Init()
  465. defer func() {
  466. this.Data["json"] = br
  467. this.ServeJSON()
  468. }()
  469. user := this.User
  470. if user == nil {
  471. br.Msg = "请登录"
  472. br.ErrMsg = "请登录,用户信息为空"
  473. br.Ret = 408
  474. return
  475. }
  476. var req models.AddStopTimeRep
  477. err := json.Unmarshal(this.Ctx.Input.RequestBody, &req)
  478. if err != nil {
  479. br.Msg = "参数解析异常!"
  480. br.ErrMsg = "参数解析失败,Err:" + err.Error()
  481. return
  482. }
  483. uid := user.UserId
  484. articleId := req.ArticleId
  485. stopTime := req.StopTime
  486. if articleId <= 0 {
  487. br.Msg = "参数错误"
  488. br.ErrMsg = "参数错误"
  489. return
  490. }
  491. if stopTime == 0 {
  492. stopTime = 1
  493. //br.Msg = "时间格式错误"
  494. //br.ErrMsg = "时间错误"
  495. //return
  496. }
  497. detail := new(models.ArticleDetail)
  498. hasPermission := 0
  499. hasFree := 0
  500. //判断是否已经申请过
  501. applyCount, err := models.GetApplyRecordCount(uid)
  502. if err != nil && err.Error() != utils.ErrNoRow() {
  503. br.Msg = "获取信息失败"
  504. br.ErrMsg = "判断是否已申请过试用失败,Err:" + err.Error()
  505. return
  506. }
  507. //`description:"1:有该行业权限,正常展示,2:无该行业权限,不存在权益客户下,3:无该品类权限,4:潜在客户,未提交过申请,5:潜在客户,已提交过申请"`
  508. if user.CompanyId > 1 {
  509. companyPermission, err := models.GetCompanyPermission(user.CompanyId)
  510. if err != nil {
  511. br.Msg = "获取信息失败"
  512. br.ErrMsg = "判断是否已申请访谈失败,Err:" + strconv.Itoa(uid) + ";articleId" + strconv.Itoa(articleId)
  513. return
  514. }
  515. detail, err = models.GetArticleDetailById(articleId)
  516. if err != nil {
  517. br.Msg = "获取信息失败"
  518. br.ErrMsg = "获取信息失败,Err:" + err.Error()
  519. return
  520. }
  521. if companyPermission == "" {
  522. if applyCount > 0 {
  523. hasPermission = 5
  524. } else {
  525. hasPermission = 2
  526. }
  527. hasFree = 2
  528. goto Loop
  529. } else {
  530. hasFree = 1
  531. var articlePermissionPermissionName string
  532. if detail.CategoryId > 0 {
  533. articlePermission, err := models.GetArticlePermission(detail.CategoryId)
  534. if err != nil {
  535. br.Msg = "获取信息失败"
  536. br.ErrMsg = "获取报告权限失败,Err:" + err.Error() + strconv.Itoa(uid) + ";articleId" + strconv.Itoa(articleId)
  537. return
  538. }
  539. if articlePermission == nil {
  540. br.Msg = "获取信息失败"
  541. br.ErrMsg = "报告权限不存在,Err:" + strconv.Itoa(uid) + ";articleId" + strconv.Itoa(articleId)
  542. return
  543. }
  544. articlePermissionPermissionName = articlePermission.PermissionName
  545. } else {
  546. articlePermissionPermissionName = detail.CategoryName
  547. }
  548. if strings.Contains(companyPermission, articlePermissionPermissionName) {
  549. detailNew, err := models.GetNewArticleHistoryRecord(uid, articleId)
  550. if err != nil {
  551. br.Msg = "获取信息失败"
  552. br.ErrMsg = "获取信息失败,Err:" + err.Error()
  553. return
  554. }
  555. hasPermission = 1
  556. historyRecord := new(models.AddStopTimeNewRep)
  557. historyRecord.StopTime = detailNew.StopTime + stopTime
  558. historyRecord.Id = detailNew.Id
  559. go models.AddArticleStopTime(historyRecord)
  560. } else { //无该行业权限
  561. hasPermission = 3
  562. }
  563. }
  564. } else { //潜在客户
  565. if applyCount > 0 {
  566. hasPermission = 5
  567. } else {
  568. hasPermission = 4
  569. }
  570. }
  571. Loop:
  572. resp := new(models.ArticleDetailAddStopTimeRep)
  573. resp.HasPermission = hasPermission
  574. resp.HasFree = hasFree
  575. br.Ret = 200
  576. br.Success = true
  577. br.Msg = "操作成功"
  578. br.Data = resp
  579. }