publish.go 399 B

12345678910111213141516171819
  1. package model
  2. // PubResp Response for publish interface
  3. type PubResp struct {
  4. CurrVer int64 `json:"curr_ver"`
  5. DiffProd []int64 `json:"diff_prod"`
  6. DiffTest []int64 `json:"diff_test"`
  7. }
  8. // Ver reprensents the already generated versions
  9. type Ver struct {
  10. FromVer int64
  11. ID int64
  12. }
  13. // TableName gives the table name of the model
  14. func (*Ver) TableName() string {
  15. return "resource_file"
  16. }