Documentation ¶
Index ¶
- Constants
- Variables
- func DbModels() []interface{}
- func Description(description string, sample ...User) user.SetUserFields[User]
- func Name(name string, sample ...User) user.SetUserFields[User]
- func NewOplog() user.OpLogUserI
- func QueryDbModels() []interface{}
- type Customer
- type CustomerController
- type CustomerSession
- type CustomerSessionClient
- type CustomersBase
- type CustomersControllerBase
- type Manager
- type ManagerConfig
- type NameAndDescriptionSetter
- type OpLogCustomer
- type User
- type UserBase
- type UserNameAndDescriptionController
- type UserNameAndDescriptionControllerB
Constants ¶
View Source
const (
ErrorCodeCustomerNotFound string = "customer_not_found"
)
Variables ¶
View Source
var ErrorDescriptions = map[string]string{ ErrorCodeCustomerNotFound: "Customer not found.", }
View Source
var ErrorHttpCodes = map[string]int{ ErrorCodeCustomerNotFound: http.StatusNotFound, }
Functions ¶
func Description ¶
func Description(description string, sample ...User) user.SetUserFields[User]
func NewOplog ¶
func NewOplog() user.OpLogUserI
func QueryDbModels ¶
func QueryDbModels() []interface{}
Types ¶
type CustomerController ¶
type CustomerController interface { generic_error.ErrorsExtender UserNameAndDescriptionController[*Customer] }
type CustomerSession ¶
type CustomerSession struct {
auth_session.SessionBase
}
func NewCustomerSession ¶
func NewCustomerSession() *CustomerSession
type CustomerSessionClient ¶
type CustomerSessionClient struct {
user_session_default.UserSessionClient
}
func NewCustomerSessionClient ¶
func NewCustomerSessionClient() *CustomerSessionClient
type CustomersBase ¶
type CustomersBase struct { user.UsersValidator auth_session.AuthUserFinder CustomerController }
func (*CustomersBase) AuthUserManager ¶
func (m *CustomersBase) AuthUserManager() auth_session.AuthUserManager
func (*CustomersBase) Construct ¶
func (c *CustomersBase) Construct(customerController CustomerController, authUserFinder ...auth_session.AuthUserFinder)
type CustomersControllerBase ¶
type CustomersControllerBase struct { generic_error.ErrorsExtenderBase UserNameAndDescriptionControllerB[*Customer] }
func LocalCustomerController ¶
func LocalCustomerController() *CustomersControllerBase
type Manager ¶
type Manager struct { CustomersBase auth_session.SessionController }
func NewManager ¶
func NewManager(config ...ManagerConfig) *Manager
func (*Manager) SessionManager ¶
func (m *Manager) SessionManager() auth_session.SessionController
type ManagerConfig ¶
type ManagerConfig struct { CustomerController CustomerController SessionController auth_session.SessionController }
type OpLogCustomer ¶
type UserBase ¶
type UserBase struct { user_session_default.User common.WithNameBase common.WithDescriptionBase }
type UserNameAndDescriptionController ¶
type UserNameAndDescriptionController[T user.User] interface { user.UserController[T] NameAndDescriptionSetter }
type UserNameAndDescriptionControllerB ¶
type UserNameAndDescriptionControllerB[T user.User] struct { *user.UserControllerBase[T] }
func (*UserNameAndDescriptionControllerB[T]) SetDescription ¶
func (cu *UserNameAndDescriptionControllerB[T]) SetDescription(ctx op_context.Context, id string, description string, idIsLogin ...bool) error
func (*UserNameAndDescriptionControllerB[T]) SetName ¶
func (cu *UserNameAndDescriptionControllerB[T]) SetName(ctx op_context.Context, id string, name string, idIsLogin ...bool) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.