Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ADemoService ¶
type ADemoService interface { // GetAll 列表查询 GetAll(sqlwhere *common.SqlWhere) (*common.SqlReturn, error) // GetById 获取单条记录 GetById(id int64) (*models.ADemo, error) // CountAll 统计 CountAll() int64 // Create 添加单条记录 Create(data *models.ADemo) (int64, error) // Update 修改单条记录 Update(data *models.ADemo, columns []string) (int64, error) // RuanDelete 软删除单条记录 RuanDelete(id int64) (int64, error) // Delete 删除单条记录 Delete(id int64) (int64, error) // GetWhere Sql语句 GetWhere(sql string) []models.ADemo GetMenu(pid int) []*models.ADemo }
func NewADemoService ¶
func NewADemoService() ADemoService
type AdminService ¶
type AdminService interface { // GetAll 列表查询 GetAll(sqlwhere *common.SqlWhere) (*common.SqlReturn, error) // GetById 获取单条记录 GetById(id int64) (*models.Admin, error) GetByAnumber(id int64) (*models.Admin, error) // CountAll 统计 CountAll() int64 // Create 添加单条记录 Create(data *models.Admin) (int64, error) // Update 修改单条记录 Update(data *models.Admin, columns []string) (int64, error) // RuanDelete 软删除单条记录 RuanDelete(id int64) (int64, error) // Delete 删除单条记录 Delete(id int64) (int64, error) // GetWhere Sql语句 GetWhere(sql string) []models.Admin Auth(account, password string) (*viewsmodels.AdminSession, error) Login(account, password string) (admUser *models.Admin, err error) GetMemberByUserName(account string) (*models.Admin, error) }
func NewAdminService ¶
func NewAdminService() AdminService
type MemberService ¶
type MemberService interface { // GetAll 列表查询 GetAll(sqlwhere *common.SqlWhere) (*common.SqlReturn, error) // GetById 获取单条记录 GetById(id int64) (*models.Member, error) GetByUnumber(id int64) (*models.Member, error) GetByMobile(mobile string) (*models.Member, error) // CountAll 统计 CountAll() int64 // Create 添加单条记录 Create(data *models.Member) (int64, error) // Update 修改单条记录 Update(data *models.Member, columns []string) (int64, error) // RuanDelete 软删除单条记录 RuanDelete(id int64) (int64, error) // Delete 删除单条记录 Delete(id int64) (int64, error) // GetWhere Sql语句 GetWhere(sql string) []models.Member Auth(account, password string) (*viewsmodels.MemberCookie, error) Login(account, password string) (admUser *models.Member, err error) GetMemberByUserName(account string) (*models.Member, error) }
func NewMemberService ¶
func NewMemberService() MemberService
Click to show internal directories.
Click to hide internal directories.