package models type AppGet struct { ID string `json:"id" gorm:"primaryKey;type:varchar(32)" parse:"path@app_id"` } type AppPatch struct { ID string `json:"id" gorm:"primaryKey;type:varchar(32)" parse:"path@app_id"` Name *string `json:"name" parse:"json"` Icon *string `json:"icon" parse:"json"` Des *string `json:"des" parse:"json"` Typ *string `json:"typ" gorm:"default:auto" parse:"json"` InitRoleID *string `json:"init_role_id" gorm:"index;type:varchar(32)" parse:"json"` Status *string `json:"status" gorm:"default:ok" parse:"json"` } type AppDelete struct { ID string `json:"id" gorm:"primaryKey;type:varchar(32)" parse:"path@app_id"` } type AppPost struct { Name string `json:"name" parse:"json"` Icon string `json:"icon" parse:"json"` Des *string `json:"des" parse:"json"` Typ string `json:"typ" gorm:"default:auto" parse:"json"` Status string `json:"status" gorm:"default:ok" parse:"json"` } type AppList struct { Name *string `json:"name" parse:"query"` } type AppUserGet struct { ID string `json:"id" gorm:"primaryKey;type:varchar(32)" parse:"path@app_user_id"` AppID string `json:"app_id" parse:"path"` UserID string `json:"user_id" parse:"query"` } type AppUserPatch struct { ID string `json:"id" gorm:"primaryKey;type:varchar(32)" parse:"path@app_user_id"` Status *string `json:"status" parse:"json"` AppID string `json:"app_id" parse:"path"` } type AppUserDelete struct { ID string `json:"id" gorm:"primaryKey;type:varchar(32)" parse:"path@app_user_id"` AppID string `json:"app_id" parse:"path"` } type AppUserList struct { AppID *string `json:"app_id" parse:"path"` UserID *string `json:"user_id" parse:"query"` Status *string `json:"status" parse:"query"` } type AppUserPost struct { Status string `json:"status" parse:"json"` UserID string `json:"user_id" parse:"json"` AppID string `json:"app_id" parse:"path"` } type ResourceGet struct { ID string `json:"id" gorm:"primaryKey;type:varchar(32)" parse:"path@resource_id"` } type ResourcePatch struct { ID string `json:"id" gorm:"primaryKey;type:varchar(32)" parse:"path@resource_id"` Des *string `json:"des" parse:"json"` } type ResourceDelete struct { ID string `json:"id" gorm:"primaryKey;type:varchar(32)" parse:"path@resource_id"` } type ResourceList struct { AppID *string `json:"app_id" parse:"path"` } type ResourcePost struct { AppID string `json:"app_id" parse:"path"` Name string `json:"name" parse:"json"` Des string `json:"des" parse:"json"` }