info.go 827 B

1234567891011121314151617181920212223
  1. package application
  2. // InfoIDField Info的ID字段
  3. type InfoIDField struct {
  4. ID string `json:"id" sqlresult:"column:id"`
  5. }
  6. // InfoTenantIDField Info的租户ID字段
  7. type InfoTenantIDField struct {
  8. TenantID string `json:"tenantId" sqlresult:"column:tenant_id"`
  9. }
  10. // InfoUserIDFields Info的用户ID相关字段
  11. type InfoUserIDFields struct {
  12. CreateUserID string `json:"createUserId" sqlresult:"column:create_user_id;"`
  13. LastUpdateUserID string `json:"lastUpdateUserId" sqlresult:"column:last_update_user_id;"`
  14. }
  15. // InfoTimeFields Info的时间相关字段
  16. type InfoTimeFields struct {
  17. CreatedTime string `json:"createdTime" sqlresult:"column:created_time;timeLayout:'2006-01-02 15:04:05'"`
  18. LastUpdatedTime string `json:"lastUpdatedTime" sqlresult:"column:last_updated_time;timeLayout:'2006-01-02 15:04:05'"`
  19. }