Documentation ¶
Index ¶
- Constants
- Variables
- func ArkeoError(w http.ResponseWriter, code int, description string)
- func CharacListCsv(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func CharacSetHiddens(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func CharacsAll(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func CharacsDelete(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func CharacsGetTree(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func CharacsRoots(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func CharacsUpdate(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func CharacsUpdateZip(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func ChronologiesAll(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func ChronologiesDelete(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func ChronologiesGetTree(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func ChronologiesListCsv(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func ChronologiesRoots(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func ChronologiesUpdate(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func CityCreate(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func CityDelete(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func CityGet(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func CityInfos(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func CityList(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func CityUpdate(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func CompanyCreate(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func CompanyDelete(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func CompanyGet(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func CompanyInfos(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func CompanyList(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func CompanyUpdate(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func ContinentsList(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func CountryList(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func DatabaseDelete(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func DatabaseEnumList(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func DatabaseExportCSVArkeogis(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func DatabaseExportList(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func DatabaseExportXML(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func DatabaseExportZIPOmeka(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func DatabaseGetImportedCSV(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func DatabaseInfos(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func DatabaseList(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func DeleteLayer(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func GetExportLayers(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func GetLayer(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func GetLayers(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func GetProject(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func GetShpGeojson(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func GetSite(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func GroupAddUser(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func GroupDelUser(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func GroupGet(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func GroupList(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func GroupSet(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func ImportStep1(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func ImportStep1Update(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func ImportStep3(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func ImportStep4(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func LangList(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func LicencesList(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func LicensesList(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func MapSearch(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func MapSearchToCSV(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func P()
- func QueryDelete(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func QueryGet(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func QuerySave(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func SaveProject(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func SaveShpLayer(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func SaveWmLayer(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func StatsGet(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func TranslatesList(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func TranslatesSave(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func UserCreate(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func UserDelete(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func UserInfos(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func UserList(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func UserLogin(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func UserLogout(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func UserPhoto(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func UserReLogin(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func UserSearch(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- func UserUpdate(w http.ResponseWriter, r *http.Request, proute routes.Proute)
- type CharacGetParams
- type CharacListCsvParams
- type CharacRootsParams
- type CharacSetHiddensParams
- type CharacSetHiddensStruct
- type CharacTreeStruct
- type CharacTreeStructCounts
- type CharacsUpdateStruct
- type CharacsZipUpdateStruct
- type ChronologiesRootsParams
- type ChronologiesUpdateStruct
- type ChronologyGetParams
- type ChronologyListCsvParams
- type ChronologyTreeStruct
- type CityGetParams
- type CityListParams
- type Company
- type CompanyGetParams
- type CompanyGetResult
- type CompanyListParams
- type ContinentsListParams
- type CountryListParams
- type DatabaseExportInfosParams
- type DatabaseExportOmekaParams
- type DatabaseInfosParams
- type DatabaseListExportParams
- type DatabaseListParams
- type GetProjectParams
- type GetSiteParams
- type GroupGetParams
- type GroupListParams
- type GroupSetPost
- type ImportStep1T
- type ImportStep1UpdateT
- type ImportStep3T
- type ImportStep4T
- type LangGetParams
- type LayerParams
- type LayersExportParams
- type LayersParams
- type LoginAnswer
- type MapSearchParams
- type MapSearchParamsArea
- type MapSearchParamsAreaGeometry
- type MapSearchParamsCharac
- type MapSearchParamsChronology
- type MapSearchParamsOthers
- type MapSqlJoin
- type MapSqlQuery
- func (sql *MapSqlQuery) AddFilter(tableas string, where string, args ...interface{})
- func (sql *MapSqlQuery) AddTable(tabledef *MapSqlTableDef, as string, usedforexclude bool)
- func (sql *MapSqlQuery) BuildQuery() (string, []interface{})
- func (sql *MapSqlQuery) FindTable(tableas string, trymebefore *MapSqlQueryTable) (table *MapSqlQueryTable, ok bool)
- func (sql *MapSqlQuery) Init()
- type MapSqlQueryTable
- type MapSqlQueryWhere
- type MapSqlTableDef
- type PhotoGetParams
- type QueryDeleteParams
- type QueryGetParams
- type QuerySaveParams
- type SaveProjectParams
- type SaveShpParams
- type SaveWmLayerParams
- type StatsResult
- type TranslateListParams
- type TranslateSaveParams
- type UserGetParams
- type UserListParams
- type UserSearchParams
- type Usercreate
- type Userinfos
- type Userlogin
- type Valuedisplay
- type ZipContent
Constants ¶
const CharacCsvColumnAatId = 8
const CharacCsvColumnArkId = 6
const CharacCsvColumnId = 0
const CharacCsvColumnName = 1
const CharacCsvColumnPactolsId = 7
const CharacCsvColumnPath0 = 1
const CharacCsvColumnPath1 = 2
const CharacCsvColumnPath2 = 3
const CharacCsvColumnPath3 = 4
const CharacCsvColumnPath4 = 5
Variables ¶
var MapSqlDefDatabase = MapSqlTableDef{ TableName: "database", Joins: []MapSqlJoin{ { JoinLeftTable: "site", JoinLeftKey: "database_id", JoinRightTable: "database", JoinRightKey: "id", }, }, }
var MapSqlDefSite = MapSqlTableDef{ TableName: "site", Joins: []MapSqlJoin{}, }
var MapSqlDefSiteRange = MapSqlTableDef{ TableName: "site_range", Joins: []MapSqlJoin{ { JoinLeftTable: "site", JoinLeftKey: "id", JoinRightTable: "site_range", JoinRightKey: "site_id", }, }, }
var MapSqlDefSiteRangeCharac = MapSqlTableDef{ TableName: "site_range__charac", Joins: []MapSqlJoin{ { JoinLeftTable: "site_range", JoinLeftKey: "id", JoinRightTable: "site_range__charac", JoinRightKey: "site_range_id", }, }, }
var MapSqlDefSiteRangeCharacTr = MapSqlTableDef{ TableName: "site_range__charac_tr", Joins: []MapSqlJoin{ { JoinLeftTable: "site_range__charac", JoinLeftKey: "id", JoinRightTable: "site_range__charac_tr", JoinRightKey: "site_range__charac_id", }, { JoinLeftTable: "database", JoinLeftKey: "default_language", JoinRightTable: "site_range__charac_tr", JoinRightKey: "lang_isocode", }, }, }
var MapSqlDefXSite = MapSqlTableDef{ TableName: "site", Joins: []MapSqlJoin{ { JoinLeftTable: "site", JoinLeftKey: "id", JoinRightTable: "site", JoinRightKey: "id", }, }, }
Functions ¶
func ArkeoError ¶
func ArkeoError(w http.ResponseWriter, code int, description string)
func CharacListCsv ¶
func CharacSetHiddens ¶
func CharacsAll ¶
func CharacsDelete ¶
func CharacsGetTree ¶
func CharacsRoots ¶
CharacsRoots write all root characs in all languages
func CharacsUpdate ¶
CharacsUpdate Create/Update a charac
func CharacsUpdateZip ¶
CharacsUpdateZip Create/Update all characs from a zip file containing multiple languages
func ChronologiesAll ¶
ChronologiesAll write all chronologies in all languages in a flat array
func ChronologiesDelete ¶
func ChronologiesGetTree ¶
func ChronologiesListCsv ¶
func ChronologiesRoots ¶
ChronologiesRoots write all root chronologies in all languages
func ChronologiesUpdate ¶
ChronologiesUpdate Create/Update a chronology
func CityCreate ¶
func CityDelete ¶
func CityUpdate ¶
func CompanyCreate ¶
func CompanyDelete ¶
func CompanyGet ¶
func CompanyInfos ¶
func CompanyList ¶
func CompanyUpdate ¶
func ContinentsList ¶
func CountryList ¶
func DatabaseDelete ¶
func DatabaseEnumList ¶
DatabaseEnumList returns the list of enums fields We have to link them with a translation manually clientside
func DatabaseExportList ¶
DatabaseExportList returns the list of databases as csv
func DatabaseExportXML ¶
func DatabaseExportZIPOmeka ¶
func DatabaseGetImportedCSV ¶
func DatabaseInfos ¶
DatabaseInfos return detailed infos on an database
func DatabaseList ¶
DatabaseList returns the list of databases
func DeleteLayer ¶
func GetExportLayers ¶
GetLayers returns layers list
func GetProject ¶
func GetShpGeojson ¶
func GroupAddUser ¶
func GroupDelUser ¶
func ImportStep1 ¶
ImportStep1 is called by rest
func ImportStep1Update ¶
ImportStep1Update is called by rest
func ImportStep3 ¶
func ImportStep4 ¶
func LicencesList ¶
LicencesList returns the list of databases
func LicensesList ¶
LicensesList returns the list of licenses which can be assigned to databases
func MapSearchToCSV ¶
func QueryDelete ¶
QueryDelete delete the query
func SaveProject ¶
func SaveShpLayer ¶
SaveShpLayer saves shp file on filesystem and datas into database
func SaveWmLayer ¶
SaveWmLayer save wm(t)s layer informations into database
func TranslatesList ¶
TranslatesList List root translations...
func TranslatesSave ¶
UserCreate Create a user, see usercreate struct inside this function for json content
func UserCreate ¶
UserCreate Create a user, see usercreate struct inside this function for json content
func UserDelete ¶
UserDelete delete an user.
func UserLogout ¶
UserLogout will destroy it's session
func UserReLogin ¶
UserLogin Check Login
func UserSearch ¶
UserSearch returns minimalist informations about users
func UserUpdate ¶
UserUpdate update an user.
Types ¶
type CharacGetParams ¶
type CharacListCsvParams ¶
type CharacRootsParams ¶
type CharacRootsParams struct {
Project_id int
}
type CharacSetHiddensParams ¶
type CharacSetHiddensStruct ¶
type CharacSetHiddensStruct struct {
HiddenIds []int `json:"hidden_ids"`
}
CharacSetHiddensStruct structure (json)
type CharacTreeStruct ¶
type CharacTreeStruct struct { model.Charac Name map[string]string `json:"name"` Description map[string]string `json:"description"` Content []CharacTreeStruct `json:"content"` Hidden bool `json:"hidden"` UsageCount int `json:"usageCount"` Usages []CharacTreeStructCounts `json:"usages"` }
type CharacTreeStructCounts ¶
type CharacsUpdateStruct ¶
type CharacsUpdateStruct struct { model.Charac_root CharacTreeStruct UsersInGroup []model.User `json:"users_in_group" ignore:"true"` // read-only, used to display users of the group Author model.User `json:"author" ignore:"true"` // read-only, used to display users of the group }
CharacsUpdateStruct structure (json)
type CharacsZipUpdateStruct ¶
type ChronologiesRootsParams ¶
type ChronologiesRootsParams struct { Bounding_box string Active bool `json:"active"` Start_date int `json:"start_date"` End_date int `json:"end_date"` Check_dates bool `json:"check_dates"` }
ChronologiesRootsStruct holds get params passed to ChronologiesRoots
type ChronologiesUpdateStruct ¶
type ChronologiesUpdateStruct struct { model.Chronology_root ChronologyTreeStruct UsersInGroup []model.User `json:"users_in_group" ignore:"true"` // read-only, used to display users of the group Author model.User `json:"author" ignore:"true"` // read-only, used to display users of the group }
ChronologiesUpdateStruct structure (json)
type ChronologyGetParams ¶
type ChronologyListCsvParams ¶
type ChronologyTreeStruct ¶
type ChronologyTreeStruct struct { model.Chronology Name map[string]string `json:"name"` Description map[string]string `json:"description"` Content []ChronologyTreeStruct `json:"content"` }
type CityGetParams ¶
type CityGetParams struct {
Id_city int `default:"0" min:"0"`
}
type CityListParams ¶
type Company ¶
type Company struct { model.Company CityAndCountry model.CityAndCountry_wtr `json:"city_and_country"` SearchName string `json:"searchname"` }
type CompanyGetParams ¶
type CompanyGetParams struct {
Id int `json:"id"`
}
type CompanyGetResult ¶
type CompanyGetResult struct { model.Company CityAndCountry model.CityAndCountry_wtr `json:"city_and_country"` }
type CompanyListParams ¶
type CompanyListParams struct {
Search string
}
type ContinentsListParams ¶
type ContinentsListParams struct {
Search string
}
type CountryListParams ¶
type CountryListParams struct {
Search string
}
type DatabaseInfosParams ¶
DatabaseInfosParams are params received by REST query
type DatabaseListExportParams ¶
type DatabaseListExportParams struct {
Lang string
}
type DatabaseListParams ¶
type GetProjectParams ¶
type GetSiteParams ¶
type GetSiteParams struct {
ID int `min:"1"`
}
type GroupGetParams ¶
type GroupGetParams struct {
Id int `min:"0" error:"id over boundaries"`
}
type GroupListParams ¶
type GroupListParams struct { Type string `default:"user" enum:"user,charac,chronology"` Limit int `default:"10" min:"1" max:"100" error:"limit over boundaries"` Page int `default:"1" min:"1" error:"page over boundaries"` Order string `default:"g_tr.name" enum:"g.created_at,-g.created_at,g.updated_at,-g.updated_at,g_tr.name,-g_tr.name" error:"bad order"` Filter string `default:""` }
GroupListParams is params struct for GroupList query
type GroupSetPost ¶
type ImportStep1T ¶
type ImportStep1T struct { Name string `min:"3" max:"75" error:"Wrong length for database name"` Geographical_extent string `enum:"undefined,country,continent,international_waters,world" error:"Wrong geographical extent"` Default_language string `min:"2" max:"2" error:"Wrong lang"` Continents []model.Continent Countries []model.Country UseGeonames bool Separator string `min:"1" max:"1" error:"Wrong separator"` EchapCharacter string `min:"1" max:"1" error:"Wrong echap characted"` File *routes.File }
ImportStep1T struct holds information provided by user
type ImportStep1UpdateT ¶
type ImportStep1UpdateT struct { Id int Name string `min:"3" max:"75" error:"Wrong length for database name"` Default_language string `min:"2" max:"2" error:"Wrong lang"` Geographical_extent string Continents []model.Continent Countries []model.Country }
ImportStep1UpdateT struct holds information provided by user
type ImportStep3T ¶
type ImportStep3T struct { Id int `min:"1" error:"Wrong database id"` Authors []int `min:"1" error:"Wrong num of authors"` Type string `enum:"undefined,inventory,research,literary-work" error:"Wrong database type"` Declared_creation_date time.Time Contexts []string `min:"1" error:"Wrong context"` License_ID int `min:"1" error:"Wrong license id"` Scale_resolution string `min:"1" error:"Scale resolution is mandatory"` Subject string `min:"1" error:"Subject is mandatory"` State string `min:"1" error:"State is mandatory"` Project_ID int `min:"1" error:"Project id is mandatory"` Published bool Public bool Description []struct { Lang_Isocode string Text string } `min:"1" error:"Description is mandatory"` }
type ImportStep4T ¶
type ImportStep4T struct { Id int Import_ID int Editor string Editor_url string Contributor string Source_description string Context_description string Source_url string Source_declared_creation_date time.Time Source_relation string Source_identifier string Geographical_Limit []struct { Lang_Isocode string Text string } Bibliography []struct { Lang_Isocode string Text string } Re_use []struct { Lang_Isocode string Text string } }
type LangGetParams ¶
type LangGetParams struct {
Active int
}
LangGetParams are params received by REST query
type LayerParams ¶
type LayersExportParams ¶
type LayersExportParams struct { LayersParams Lang string `json:"lang" min:"0" max:"2"` }
type LayersParams ¶
type LoginAnswer ¶
type MapSearchParams ¶
type MapSearchParams struct { Knowledge map[string]bool `json:"knowledge"` Occupation map[string]bool `json:"occupation"` Database []int `json:"database"` Chronologies []MapSearchParamsChronology `json:"chronologies"` Characs map[int]MapSearchParamsCharac `json:"characs"` Others MapSearchParamsOthers `json:"others"` Area MapSearchParamsArea `json:"area"` }
MapSearchParams is the query filter for searching sites
type MapSearchParamsArea ¶
type MapSearchParamsArea struct { Type string `json:"type"` Lat float32 `json:"lat"` Lng float32 `json:"lng"` Radius float32 `json:"radius"` Geojson MapSearchParamsAreaGeometry `json:"geojson"` }
type MapSearchParamsAreaGeometry ¶
type MapSearchParamsAreaGeometry struct {
Geometry sqlx_types.JSONText `json:"geometry"`
}
type MapSearchParamsCharac ¶
type MapSearchParamsChronology ¶
type MapSearchParamsChronology struct { StartDate int `json:"start_date"` EndDate int `json:"end_date"` ExistenceInsideInclude string `json:"existence_inside_include"` ExistenceInsidePart string `json:"existence_inside_part"` ExistenceInsideSureness string `json:"existence_inside_sureness"` ExistenceOutsideInclude string `json:"existence_outside_include"` ExistenceOutsideSureness string `json:"existence_outside_sureness"` SelectedChronologyId int `json:"selected_chronology_id"` }
type MapSearchParamsOthers ¶
type MapSqlJoin ¶
type MapSqlQuery ¶
type MapSqlQuery struct { Tables []*MapSqlQueryTable Wheres []*MapSqlQueryWhere }
func (*MapSqlQuery) AddFilter ¶
func (sql *MapSqlQuery) AddFilter(tableas string, where string, args ...interface{})
func (*MapSqlQuery) AddTable ¶
func (sql *MapSqlQuery) AddTable(tabledef *MapSqlTableDef, as string, usedforexclude bool)
func (*MapSqlQuery) BuildQuery ¶
func (sql *MapSqlQuery) BuildQuery() (string, []interface{})
func (*MapSqlQuery) FindTable ¶
func (sql *MapSqlQuery) FindTable(tableas string, trymebefore *MapSqlQueryTable) (table *MapSqlQueryTable, ok bool)
func (*MapSqlQuery) Init ¶
func (sql *MapSqlQuery) Init()
type MapSqlQueryTable ¶
type MapSqlQueryTable struct { TableDef *MapSqlTableDef As string UsedForExclude bool }
type MapSqlQueryWhere ¶
type MapSqlQueryWhere struct { Table *MapSqlQueryTable Where string Args []interface{} }
type MapSqlTableDef ¶
type MapSqlTableDef struct { TableName string Joins []MapSqlJoin }
type PhotoGetParams ¶
type PhotoGetParams struct {
Id int `min:"0" error:"Photo Id is mandatory"`
}
type QueryDeleteParams ¶
type QueryGetParams ¶
type QueryGetParams struct {
Project_id int
}
type QuerySaveParams ¶
type SaveProjectParams ¶
type SaveProjectParams struct { Name string `json:"name"` Id int `default:"0" json:"id"` User_id int `json:"-"` Start_date int `json:"start_date"` End_date int `json:"end_date"` Geom string `json:"geom"` Chronologies []int `json:"chronologies"` Layers []model.LayerFullInfos `json:"layers"` Databases []int `json:"databases"` Characs []int `json:"characs"` }
type SaveShpParams ¶
type SaveShpParams struct { Id int Author_Id int Authors []int Filename string Geojson string Geojson_with_data string Start_date int End_date int Geographical_extent_geom string Published bool File *routes.File License string License_id int Declared_creation_date time.Time Attribution string Copyright string Name []struct { Lang_Isocode string Text string } Description []struct { Lang_Isocode string Text string } }
type SaveWmLayerParams ¶
type SaveWmLayerParams struct { Id int Authors []int Type string Url string Identifier string Min_scale int Max_scale int Start_date int End_date int Image_format string Geographical_extent_geom string Published bool License string License_id int Attribution string Copyright string Tile_matrix_set string Tile_matrix_string string Use_proxy bool Max_usage_date time.Time Name []struct { Lang_Isocode string Text string } Description []struct { Lang_Isocode string Text string } }
type StatsResult ¶
type TranslateListParams ¶
type TranslateSaveParams ¶
type UserGetParams ¶
type UserGetParams struct {
Id int `min:"0" error:"User Id is mandatory"`
}
type UserListParams ¶
type UserListParams struct { Limit int `default:"10" min:"1" max:"10000" error:"limit over boundaries"` Page int `default:"1" min:"1" error:"page over boundaries"` Order string `` /* 267-byte string literal not displayed */ Filter string `default:""` }
UserListParams is params struct for UserList query
type UserSearchParams ¶
type UserSearchParams struct {
Text string `min:"0" error:"Search string is mandatory"`
}
type Usercreate ¶
type Usercreate struct { model.User CityAndCountry model.CityAndCountry_wtr `json:"city_and_country"` Companies []Company `json:"companies"` File *routes.File Groups []model.Group `json:"groups"` // overrides Password string `json:"password"` }
UserCreate structure (json)
type Userinfos ¶
type Userinfos struct { Usercreate // overrides Password string `json:"-"` // databases Databases []model.Database `json:"databases"` }
type Valuedisplay ¶
Structures for create