|
@@ -9,7 +9,7 @@ import (
|
|
|
|
|
|
// 权益服务明细表
|
|
|
type CygxUserFeedback struct {
|
|
|
- UserFeedbackId int `comment:"UserFeedbackId 主键ID"`
|
|
|
+ UserFeedbackId int `orm:"column(user_feedback_id);pk";comment:"主键id"`
|
|
|
Content string `comment:"服务内容说明"`
|
|
|
UserId int `comment:"用户ID"`
|
|
|
Mobile string `comment:"手机号"`
|
|
@@ -21,6 +21,13 @@ type CygxUserFeedback struct {
|
|
|
CreateTime time.Time `comment:"创建时间"`
|
|
|
}
|
|
|
|
|
|
+// 权益服务明细表
|
|
|
+type CygxUserFeedbackResp struct {
|
|
|
+ UserFeedbackId int `comment:"主键id"`
|
|
|
+ Content string `comment:"服务内容说明"`
|
|
|
+ CreateTime string `comment:"创建时间"`
|
|
|
+}
|
|
|
+
|
|
|
type AddCygxUserFeedbackReq struct {
|
|
|
Content string `comment:"服务内容说明"`
|
|
|
UserId int `comment:"用户ID"`
|
|
@@ -46,7 +53,7 @@ func DeleteCygxUserFeedback(userFeedbackId int) (err error) {
|
|
|
}
|
|
|
|
|
|
// 列表
|
|
|
-func GetCygxUserFeedbackListByUserId(userId int) (items []*CygxUserFeedback, err error) {
|
|
|
+func GetCygxUserFeedbackListByUserId(userId int) (items []*CygxUserFeedbackResp, err error) {
|
|
|
o := orm.NewOrmUsingDB("hz_cygx")
|
|
|
sql := `SELECT * FROM cygx_user_feedback WHERE user_id = ? `
|
|
|
sql += ` ORDER BY user_feedback_id DESC LIMIT 100 `
|
|
@@ -55,5 +62,5 @@ func GetCygxUserFeedbackListByUserId(userId int) (items []*CygxUserFeedback, err
|
|
|
}
|
|
|
|
|
|
type CygxCygxUserFeedbackResp struct {
|
|
|
- List []*CygxUserFeedback
|
|
|
+ List []*CygxUserFeedbackResp
|
|
|
}
|