Documentation ¶
Index ¶
- func Count(data *CountParam) (int64, error)
- func Create(data *CreateParam) (uint, error)
- func Delete(data *DeleteParam) error
- func Fetch(data *FetchParam) (*tables.Chatroom, error)
- func FetchAll(data *FetchAllParam) ([]*tables.Chatroom, error)
- func Replace(data *ReplaceParam) error
- func Update(data *UpdateParam) error
- type CountParam
- type CreateParam
- type DeleteParam
- type FetchAllParam
- type FetchParam
- type ReplaceParam
- type UpdateParam
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Count ¶
func Count(data *CountParam) (int64, error)
func Create ¶
func Create(data *CreateParam) (uint, error)
func Delete ¶
func Delete(data *DeleteParam) error
func Replace ¶
func Replace(data *ReplaceParam) error
func Update ¶
func Update(data *UpdateParam) error
Types ¶
type CountParam ¶
type CountParam = FetchAllParam
type CreateParam ¶
type CreateParam struct { Rd uint `json:"rd"` Roomid string `json:"roomid" binding:"required"` Name string `json:"name"` Level int32 `json:"level"` Remark string `json:"remark"` JoinArgot string `json:"join_argot"` PatReturn string `json:"pat_return"` RevokeMsg string `json:"revoke_msg"` WelcomeMsg string `json:"welcome_msg"` ModelContext string `json:"model_context"` ModelDefault string `json:"model_default"` ModelHistory int `json:"model_history"` }
type DeleteParam ¶
type DeleteParam = FetchParam
type FetchAllParam ¶
type FetchAllParam struct {
Level int32 `json:"level"`
}
type FetchParam ¶
type ReplaceParam ¶
type ReplaceParam = CreateParam
type UpdateParam ¶
type UpdateParam = CreateParam
Click to show internal directories.
Click to hide internal directories.