plat_followup_comment.go 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // ==========================================================================
  2. // This is auto-generated by gf cli tool. Fill this file as you wish.
  3. // ==========================================================================
  4. package plat
  5. import (
  6. "dashoo.cn/micro/app/model/plat/internal"
  7. "dashoo.cn/opms_libary/request"
  8. )
  9. // PlatFollowupComment is the golang structure for table plat_followup_comment.
  10. type PlatFollowupComment internal.PlatFollowupComment
  11. // Fill with you ideas below.
  12. // 查询
  13. type SearchPlatFollowupCommentReq struct {
  14. FollowId string `json:"followId"`
  15. Pid string `json:"pid"`
  16. request.PageReq
  17. }
  18. // 获取本人需要回复的评论列表请求参数
  19. type SearchNeedReplyCommentsReq struct {
  20. request.PageReq
  21. }
  22. // 添加数据
  23. type AddPlatFollowupCommentReq struct {
  24. FollowId string `orm:"follow_id" json:"followId" v:"required#关联跟进不能为空"` // 关联跟进
  25. Content string `orm:"content" json:"content"` // 评论内容
  26. Pid int `orm:"pid" json:"pid"` // 回复对象ID
  27. Remark string `orm:"remark" json:"remark"` // 备注
  28. }
  29. type FollowupCommentEx struct {
  30. PlatFollowupComment
  31. ReplyComments []*FollowupCommentEx `json:"replyComments"`
  32. }
  33. type FollowupCommentEx2 struct {
  34. PlatFollowupComment
  35. TargetType string `orm:"target_type" json:"targetType" v:"required#跟进对象类型不能为空"` // 跟进对象类型(10客户,20项目,30合同,40回款)
  36. TargetName string `orm:"target_name" json:"targetName" v:"required#跟进对象不能为空"` // 跟进对象
  37. ReplyComments []*FollowupCommentEx2 `json:"replyComments"`
  38. }