You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OneAuth/oa/models/app.gen.go

84 lines
2.5 KiB
Go

package models
type AppGet struct {
1 month ago
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"`
}
2 months ago
type AppDelete struct {
ID string `json:"id" gorm:"primaryKey;type:varchar(32)" parse:"path@app_id"`
}
type AppPost struct {
4 weeks ago
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"`
}
2 months ago
type AppList struct {
Name *string `json:"name" parse:"json"`
}
type AppUserGet struct {
2 months ago
ID string `json:"id" gorm:"primaryKey;type:varchar(32)" parse:"path@app_user_id"`
UserID string `json:"user_id" parse:"json"`
2 months ago
AppID string `json:"app_id" parse:"path"`
}
2 months ago
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"`
}
2 months ago
type AppUserDelete struct {
ID string `json:"id" gorm:"primaryKey;type:varchar(32)" parse:"path@app_user_id"`
AppID string `json:"app_id" parse:"path"`
2 months ago
}
type AppUserList struct {
2 months ago
AppID *string `json:"app_id" parse:"path"`
UserID *string `json:"user_id" parse:"json"`
Status *string `json:"status" parse:"json"`
}
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"`
}
2 months ago
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"`
2 months ago
}