rdluck 4 年之前
父节点
当前提交
bbe64e2a25
共有 1 个文件被更改,包括 5 次插入3 次删除
  1. 5 3
      controllers/bill.go

+ 5 - 3
controllers/bill.go

@@ -14,9 +14,9 @@ type BillController struct {
 
 // @Title 年度账单接口
 // @Description 年度账单接口
-// @Success 200 {object} models.WxLoginResp
+// @Success 200 {object} models.BillDetailResp
 // @router /detail [get]
-func (this *WechatCommonController) Detail() {
+func (this *BillController) Detail() {
 	br := new(models.BaseResponse).Init()
 	defer func() {
 		this.Data["json"] = br
@@ -56,7 +56,7 @@ func (this *WechatCommonController) Detail() {
 		createDate = user.LastUpdatedTime.Format(utils.FormatDate)
 	}
 
-	uid = 41555
+	//uid = 41555
 
 	firstReadReportType, firstReadReportTitle, err := models.GetFirstReportInfo(uid)
 	if err != nil {
@@ -76,6 +76,7 @@ func (this *WechatCommonController) Detail() {
 		br.ErrMsg = "获取数据失败GetListenInfo,Err:" + err.Error()
 		return
 	}
+
 	/*
 	   LatestReadReportDate         string  `description:"阅读报告时间最晚的一天"`
 	   LatestReadReportTime         string  `description:"阅读报告时间最晚的一天,最晚的时间"`
@@ -90,6 +91,7 @@ func (this *WechatCommonController) Detail() {
 	   TotalReportRddpCount         int     `description:"总阅读点评数"`
 	   LearnDay                     int     `description:"连续学习天数"`
 	*/
+
 	resp.RealName = realName
 	resp.TogetherDay = togetherDay
 	resp.CreateDate = createDate