用户反馈信息基本CRUD

This commit is contained in:
chy
2025-06-05 17:43:22 +08:00
parent 77067adf33
commit 830f9c236b
23 changed files with 682 additions and 58 deletions

View File

@ -0,0 +1,22 @@
package feedback
import (
"context"
"server/internal/model"
"server/internal/service"
"server/api/feedback/v1"
)
func (c *ControllerV1) UpdateReply(ctx context.Context, req *v1.UpdateReplyReq) (res *v1.UpdateReplyRes, err error) {
out, err := service.Feedback().UpdateReply(ctx, &model.FeedbackUpdateReplyIn{
Id: req.Id,
Reply: req.Reply,
Status: req.Status,
})
if err != nil {
return nil, err
}
return &v1.UpdateReplyRes{Success: out.Success}, nil
}