Documentation ¶
Index ¶
Constants ¶
View Source
const ( CreatedSuccess = "添加用户角色关联成功!" CreatedFail = "添加用户角色关联失败!" UpdatedSuccess = "修改用户角色关联成功!" UpdatedFail = "修改用户角色关联失败!" DeletedSuccess = "删除用户角色关联成功!" DeletedFail = "删除用户角色关联失败!" )
View Source
const ( FieldStaffID = "staff_id" FieldRoleID = "role_id" FieldCreatedAt = "created_at" FieldUpdatedAt = "updated_at" FieldCreatedBy = "created_by" FieldUpdatedBy = "updated_by" Table = "system_staffs_roles" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateInput ¶
type DeleteInput ¶
type Repository ¶
type Repository struct{}
func NewRepository ¶
func NewRepository() *Repository
func (*Repository) CreateBatchWithTx ¶
func (r *Repository) CreateBatchWithTx(i *CreateInput, tx *sqlx.Tx) error
func (*Repository) DeleteBatchWithTx ¶
func (r *Repository) DeleteBatchWithTx(i *DeleteInput, tx *sqlx.Tx) error
func (*Repository) QueryAll ¶
func (r *Repository) QueryAll(w *WhereParams, db *sqlx.DB) ([]*StaffRole, error)
type UpdateInput ¶
type WhereParams ¶
Click to show internal directories.
Click to hide internal directories.