model.proto 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. syntax = "proto3";
  2. package sms.service.model;
  3. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  4. option go_package = "model";
  5. message ModelTemplate {
  6. int64 id = 1 [(gogoproto.customname) = "ID", (gogoproto.moretags) = 'json:"id"'];
  7. string code = 2 [(gogoproto.moretags) = 'json:"code"'];
  8. string template = 3 [(gogoproto.moretags) = 'json:"template"'];
  9. int32 stype = 4 [(gogoproto.moretags) = 'json:"stype"'];
  10. int32 status = 5 [(gogoproto.moretags) = 'json:"status"'];
  11. string approver = 6 [(gogoproto.moretags) = 'json:"approver"'];
  12. string submitter = 7 [(gogoproto.moretags) = 'json:"submitter"'];
  13. repeated string param = 8 [(gogoproto.moretags) = 'json:"param" gorm:"-"'];
  14. int64 ctime = 9 [(gogoproto.moretags) = 'json:"ctime" gorm:"column:ctime"', (gogoproto.casttype) = "go-common/library/time.Time"];
  15. int64 mtime = 10 [(gogoproto.moretags) = 'json:"mtime" gorm:"column:mtime"', (gogoproto.casttype) = "go-common/library/time.Time"];
  16. }
  17. message ModelSend {
  18. int64 id = 1 [(gogoproto.customname) = "ID"];
  19. string mid = 2;
  20. string mobile = 3;
  21. string country = 4;
  22. string code = 5;
  23. string content = 6;
  24. int32 status = 7;
  25. int32 type = 8;
  26. int32 pid = 9;
  27. }
  28. message ModelUserActionLog {
  29. string msgid = 1 [(gogoproto.customname) = "MsgID"];
  30. string mobile = 2;
  31. string content = 3;
  32. string status = 4;
  33. string desc = 5;
  34. int32 provider = 6;
  35. int32 type = 7;
  36. int32 action = 8;
  37. int64 ts = 9;
  38. }
  39. message ModelTask {
  40. int64 id = 1 [(gogoproto.customname) = "ID"];
  41. int32 type = 2;
  42. int32 business_id = 3 [(gogoproto.customname) = "BusinessID"];
  43. string template_code = 4;
  44. string template_content = 5 [(gogoproto.moretags) = 'gorm:"-"'];
  45. string desc = 6;
  46. string file_name = 7;
  47. string file_path = 8;
  48. int64 send_time = 9 [(gogoproto.casttype) = "go-common/library/time.Time"];
  49. int32 status = 10;
  50. int64 ctime = 11 [(gogoproto.moretags) = 'gorm:"column:ctime"', (gogoproto.casttype) = "go-common/library/time.Time"];
  51. int64 mtime = 12 [(gogoproto.moretags) = 'gorm:"column:mtime"', (gogoproto.casttype) = "go-common/library/time.Time"];
  52. }