operation_log.go 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. package apis
  2. type OperationLogAddRequest struct {
  3. User string `json:"user"`
  4. Uid int64 `json:"uid"`
  5. Module int32 `json:"module"`
  6. Operation int32 `json:"operation"`
  7. OriginContent string `json:"origin_content"`
  8. TargetContent string `json:"target_content"`
  9. OperationTime int64 `json:"operation_time"`
  10. }
  11. type OperationLogAddReply struct {
  12. }
  13. type OperationLogItem struct {
  14. Id int64 `json:"id"`
  15. User string `json:"user"`
  16. Uid int64 `json:"uid"`
  17. Module string `json:"module"`
  18. Operation string `json:"operation"`
  19. OriginContent string `json:"origin_content"`
  20. TargetContent string `json:"target_content"`
  21. OperationTime int64 `json:"operation_time"`
  22. }
  23. type OperationLogListRequest struct {
  24. Page int64 `json:"page"`
  25. PageSize int64 `json:"page_size"`
  26. Start int64 `json:"start"`
  27. End int64 `json:"end"`
  28. }
  29. type OperationLogListReply struct {
  30. Page int64 `json:"page"`
  31. Total int64 `json:"page"`
  32. List []*OperationLogItem `json:"list"`
  33. }
  34. type OperationLogDelRequest struct {
  35. SelfId int64 `json:"self_id"`
  36. Ids []int64 `json:"ids"`
  37. }
  38. type OperationLogDelReply struct {
  39. }