added additional godoc and updated the OAuth2 form to use the same created record pointer
This commit is contained in:
@@ -25,13 +25,27 @@ var (
|
||||
// AutodateField defines an "autodate" type field, aka.
|
||||
// field which datetime value could be auto set on record create/update.
|
||||
//
|
||||
// This field is usually used for defining timestamp fields like "created" and "updated".
|
||||
//
|
||||
// Requires either both or at least one of the OnCreate or OnUpdate options to be set.
|
||||
type AutodateField struct {
|
||||
Id string `form:"id" json:"id"`
|
||||
Name string `form:"name" json:"name"`
|
||||
System bool `form:"system" json:"system"`
|
||||
Hidden bool `form:"hidden" json:"hidden"`
|
||||
Presentable bool `form:"presentable" json:"presentable"`
|
||||
// Name (required) is the unique name of the field.
|
||||
Name string `form:"name" json:"name"`
|
||||
|
||||
// Id is the unique stable field identifier.
|
||||
//
|
||||
// It is automatically generated from the name when adding to a collection FieldsList.
|
||||
Id string `form:"id" json:"id"`
|
||||
|
||||
// System prevents the renaming and removal of the field.
|
||||
System bool `form:"system" json:"system"`
|
||||
|
||||
// Hidden hides the field from the API response.
|
||||
Hidden bool `form:"hidden" json:"hidden"`
|
||||
|
||||
// Presentable hints the Dashboard UI to use the underlying
|
||||
// field record value in the relation preview label.
|
||||
Presentable bool `form:"presentable" json:"presentable"`
|
||||
|
||||
// ---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user