Documentation ¶
Index ¶
- func InitSvc(dao dao.Dao)
- type ApplicationRecord
- type Department
- type Enterprise
- type EnterpriseAreaPermission
- type EnterpriseUser
- type EnterpriseUserAttachment
- type Files
- type InterfaceResource
- type Member
- type MenuResource
- type PageInterface
- type PageResource
- type Permission
- type PermissionGroup
- type PermissionGroupPermission
- type Position
- type Role
- type RoleGroup
- type RoleGroupPermission
- type RolePermission
- type Sms
- type Svc
- type TemporaryWorker
- type TurnoverRecord
- type User
- type UserClient
- type UserCredentials
- type UserEntry
- type UserPermission
- type UserProfession
- type UserRealNameAuthenticationLog
- type Wechat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ApplicationRecord ¶
type ApplicationRecord interface { Create(*entity.ApplicationRecord) (*entity.ApplicationRecord, error) Delete(*entity.ApplicationRecord) error Select(en *entity.ApplicationRecord, pg *dao.Pagination, st, et *time.Time) ([]*entity.ApplicationRecord, *dao.Pagination, error) Update(*entity.ApplicationRecord) (*entity.ApplicationRecord, error) UpdateByUserEntryPk(en *entity.ApplicationRecord) (*entity.ApplicationRecord, error) FindByPk(en *entity.ApplicationRecord) (*entity.ApplicationRecord, error) Find(en *entity.ApplicationRecord) (*entity.ApplicationRecord, error) SelectWithDetail(in *model.ApplicationRecordModel, pg *dao.Pagination, st, et *time.Time) ([]*model.ApplicationRecordModel, *dao.Pagination, error) CountDetail(en *model.ApplicationRecordModel, st, et *time.Time) (int32, error) }
func NewApplicationRecord ¶
func NewApplicationRecord(dao dao.Dao) ApplicationRecord
type Department ¶
type Department interface { FindAllDepartByEnterprisePk(en *entity.Department) ([]*pb.DepartmentList, error) Create(*entity.Department) (*entity.Department, error) Update(*entity.Department, string) (*entity.Department, error) Delete(*entity.Department) error FindByPk(en *entity.Department) (*entity.Department, error) Select(*entity.Department, *dao.Pagination) ([]*entity.Department, *dao.Pagination, error) FindByEnterprisePkAndName(en *entity.Department) (*entity.Department, error) }
func NewDepartment ¶
func NewDepartment(dao dao.Dao) Department
type Enterprise ¶
type Enterprise interface { ReadUserEnterprise(userPk int64) ([]*model.Enterprise, error) ReadAppUserEnterprise(userPk int64) ([]*model.Enterprise, error) Create(*entity.Enterprise) (*model.Enterprise, error) Delete(*entity.Enterprise) error Select(*entity.Enterprise, *dao.Pagination) ([]*model.Enterprise, *dao.Pagination, error) Update(*entity.Enterprise) (*model.Enterprise, error) FindByPk(en *entity.Enterprise) (*model.Enterprise, error) SelectEnterpriseForEnterpriseAreaPermission(list []*entity.EnterpriseAreaPermission, en *entity.Enterprise, pg *entity.Pagination) ([]*model.Enterprise, int32, error) }
func NewEnterprise ¶
func NewEnterprise(dao dao.Dao) Enterprise
type EnterpriseAreaPermission ¶
type EnterpriseAreaPermission interface { CreateEnterpriseAreaPermission(areaPermission *entity.EnterpriseAreaPermission) (*entity.EnterpriseAreaPermission, error) SelectEnterpriseAreaPermission(areaPermission *entity.EnterpriseAreaPermission, page *entity.Pagination) ([]*entity.EnterpriseAreaPermission, int32, error) DeleteEnterpriseAreaPermission(areaPermission *entity.EnterpriseAreaPermission) error FindList(areaPermission *entity.EnterpriseAreaPermission) ([]*entity.EnterpriseAreaPermission, error) }
func NewEnterpriseAreaPermission ¶
func NewEnterpriseAreaPermission(dao dao.Dao) EnterpriseAreaPermission
type EnterpriseUser ¶
type EnterpriseUser interface { Create(*entity.EnterpriseUser) (*entity.EnterpriseUser, error) Delete(*entity.EnterpriseUser) error Select(*entity.EnterpriseUser, *dao.Pagination) ([]*entity.EnterpriseUser, *dao.Pagination, error) Update(*entity.EnterpriseUser) (*entity.EnterpriseUser, error) FindByPk(en *entity.EnterpriseUser) (*entity.EnterpriseUser, error) FindByUserPkAndEnterprisePk(en *entity.EnterpriseUser) (*entity.EnterpriseUser, error) Count(user *entity.EnterpriseUser) (int32, error) DimissionEnterpriseUser(en *entity.EnterpriseUser) error CreateEnterpriseUser(*entity.EnterpriseUser) (*entity.EnterpriseUser, error) }
func NewEnterpriseUser ¶
func NewEnterpriseUser(dao dao.Dao) EnterpriseUser
type EnterpriseUserAttachment ¶
type EnterpriseUserAttachment interface { Create(attachment *entity.EnterpriseUserAttachment) (*entity.EnterpriseUserAttachment, error) Delete(attachment *entity.EnterpriseUserAttachment) error List(attachment *entity.EnterpriseUserAttachment) ([]*entity.EnterpriseUserAttachment, error) }
func NewEnterpriseUserAttachment ¶
func NewEnterpriseUserAttachment(dao dao.Dao) EnterpriseUserAttachment
type Files ¶
type InterfaceResource ¶
type InterfaceResource interface { Create(*entity.InterfaceResource) (*entity.InterfaceResource, error) Delete(*entity.InterfaceResource) error Select(*entity.InterfaceResource, *dao.Pagination) ([]*entity.InterfaceResource, *dao.Pagination, error) Update(*entity.InterfaceResource) (*entity.InterfaceResource, error) FindByPk(en *entity.InterfaceResource) (*entity.InterfaceResource, error) }
func NewInterfaceResource ¶
func NewInterfaceResource(dao dao.Dao) InterfaceResource
type Member ¶
type Member interface { Create(m *entity.Member) (*entity.Member, error) CreateMemberUser(member *entity.Member, user *entity.User, userCredentials []*entity.UserCredentials) (*entity.Member, error) Delete(m *entity.Member) error DeleteByEnterprisePkAndUserPk(m *entity.Member) error Select(in *model.Member, pg *entity.Pagination) ([]*model.Member, *entity.Pagination, error) Count(m *entity.Member) (int32, error) UpdateMemberUser(in *entity.EnterpriseUser) (*entity.EnterpriseUser, error) UpdateUserDepartmentRelation(in *entity.Member, departmentPks []int64) error CreateMemberAndEnterpriseUser(eu *entity.EnterpriseUser, in *entity.Member) (*entity.Member, error) List(m *entity.Member) ([]*entity.Member, error) }
type MenuResource ¶
type MenuResource interface { Create(*entity.MenuResource) (*entity.MenuResource, error) Delete(*entity.MenuResource) error Select(*entity.MenuResource, *dao.Pagination) ([]*model.MenuResourceModel, *dao.Pagination, error) Update(*entity.MenuResource) (*entity.MenuResource, error) FindByPk(en *entity.MenuResource) (*entity.MenuResource, error) SelectAllMenuWithDetail(en *entity.MenuResource) ([]*pb.MenuList, error) }
func NewMenuResource ¶
func NewMenuResource(dao dao.Dao) MenuResource
type PageInterface ¶
type PageInterface interface { Create(*entity.PageInterface) (*entity.PageInterface, error) Delete(*entity.PageInterface) error Select(*entity.PageInterface, *dao.Pagination) ([]*entity.PageInterface, *dao.Pagination, error) Update(*entity.PageInterface) (*entity.PageInterface, error) FindByPk(en *entity.PageInterface) (*entity.PageInterface, error) }
func NewPageInterface ¶
func NewPageInterface(dao dao.Dao) PageInterface
type PageResource ¶
type PageResource interface { Create(*entity.PageResource) (*entity.PageResource, error) Delete(*entity.PageResource) error Select(*entity.PageResource, *dao.Pagination) ([]*entity.PageResource, *dao.Pagination, error) Update(*entity.PageResource) (*entity.PageResource, error) FindByPk(en *entity.PageResource) (*entity.PageResource, error) SelectPageInterfaceDetailMessage(in *entity.PageResource, pg *dao.Pagination) ([]*model.PageResourceWithInterfaceMessageModel, *dao.Pagination, error) }
func NewPageResource ¶
func NewPageResource(dao dao.Dao) PageResource
type Permission ¶
type Permission interface { Create(*entity.Permission) (*entity.Permission, error) Delete(*entity.Permission) error Select(*entity.Permission, *dao.Pagination) ([]*entity.Permission, *dao.Pagination, error) SelectWithPageAndMenu(in *entity.Permission, pg *dao.Pagination) ([]*model.PermissionModel, *dao.Pagination, error) Update(*entity.Permission) (*entity.Permission, error) FindByPk(*entity.Permission) (*entity.Permission, error) }
type PermissionGroup ¶
type PermissionGroup interface { Create(*entity.PermissionGroup) (*entity.PermissionGroup, error) Delete(*entity.PermissionGroup) error Select(*entity.PermissionGroup, *dao.Pagination) ([]*entity.PermissionGroup, *dao.Pagination, error) Update(*entity.PermissionGroup) (*entity.PermissionGroup, error) FindByPk(en *entity.PermissionGroup) (*entity.PermissionGroup, error) Find(en *entity.PermissionGroup) (*entity.PermissionGroup, error) SelectPermissionGroupWithPermission(in *model.PermissionGroupModel, pg *dao.Pagination) ([]*model.PermissionGroupModel, *dao.Pagination, error) SelectPermissionGroupWithPermissionForEnterprise(in *model.PermissionGroupModel, pg *dao.Pagination) ([]*model.PermissionGroupModel, *dao.Pagination, error) }
func NewPermissionGroup ¶
func NewPermissionGroup(dao dao.Dao) PermissionGroup
NewPermissionGroup 实例化接口规范实现类
type PermissionGroupPermission ¶
type PermissionGroupPermission interface { Create(*entity.PermissionGroupPermission) (*entity.PermissionGroupPermission, error) Delete(*entity.PermissionGroupPermission) error Select(*entity.PermissionGroupPermission, *dao.Pagination) ([]*entity.PermissionGroupPermission, *dao.Pagination, error) Update(*entity.PermissionGroupPermission) (*entity.PermissionGroupPermission, error) SelectAllPermissionGroupPermission(in *model.PermissionGroupPermissionModel) ([]*model.PermissionGroupPermissionModel, error) }
func NewPermissionGroupPermission ¶
func NewPermissionGroupPermission(dao dao.Dao) PermissionGroupPermission
NewPermissionGroupPermission 实例化接口规范实现类
type Position ¶
type Position interface { Create(*entity.Position) (*entity.Position, error) Delete(*entity.Position) error Select(*entity.Position, *dao.Pagination, *time.Time, *time.Time) ([]*model.PositionModel, *dao.Pagination, error) Update(*entity.Position) (*entity.Position, error) FindByPk(en *entity.Position) (*entity.Position, error) Count(position2 *entity.Position, startTime, endTime *time.Time) (int32, error) }
func NewPosition ¶
type Role ¶
type Role interface { Create(*entity.Role) (*entity.Role, error) Delete(*entity.Role) error Select(*entity.Role, *dao.Pagination) ([]*entity.Role, *dao.Pagination, error) Update(*entity.Role) (*entity.Role, error) FindByPk(en *entity.Role) (*entity.Role, error) SelectWithDetail(in *entity.Role, pg *dao.Pagination) ([]*model.RoleModel, *dao.Pagination, error) }
type RoleGroup ¶
type RoleGroup interface { Create(*entity.RoleGroup) (*entity.RoleGroup, error) Delete(*entity.RoleGroup) error Select(*entity.RoleGroup, *dao.Pagination) ([]*entity.RoleGroup, *dao.Pagination, error) Update(*entity.RoleGroup) (*entity.RoleGroup, error) FindByPk(en *entity.RoleGroup) (*entity.RoleGroup, error) SelectWithRoleMessage(in *entity.RoleGroup, pg *dao.Pagination) ([]*model.RoleGroupWithRoleMessageModel, *dao.Pagination, error) SelectAllRoleWithRoleMessage(in *entity.RoleGroup) ([]*model.RoleGroupWithRoleMessageModel, error) }
type RoleGroupPermission ¶
type RoleGroupPermission interface { Create(*entity.RoleGroupPermission) (*entity.RoleGroupPermission, error) Delete(*entity.RoleGroupPermission) error DeleteByGroupPk(in *entity.RoleGroupPermission) error Select(*entity.RoleGroupPermission, *dao.Pagination) ([]*entity.RoleGroupPermission, *dao.Pagination, error) Update(*entity.RoleGroupPermission) (*entity.RoleGroupPermission, error) FindByPk(en *entity.RoleGroupPermission) (*entity.RoleGroupPermission, error) SelectRoleGroupPermissionByRoleGroupPk(en *entity.RoleGroupPermission) ([]*model.RoleGroupPermissionModel, error) SelectAllRoleGroupPermission(en *entity.RoleGroupPermission) ([]*entity.RoleGroupPermission, error) SelectPermissionByRoleGroupPK(roleGroupPk int64) ([]*entity.Permission, error) }
func NewRoleGroupPermission ¶
func NewRoleGroupPermission(dao dao.Dao) RoleGroupPermission
NewRoleGroupPermission 实例化接口规范实现类
type RolePermission ¶
type RolePermission interface { Create(*entity.RolePermission) (*entity.RolePermission, error) Delete(*entity.RolePermission) error DeleteByRolePk(in *entity.RolePermission) error Select(*entity.RolePermission, *dao.Pagination) ([]*entity.RolePermission, *dao.Pagination, error) Update(*entity.RolePermission) (*entity.RolePermission, error) SelectAllRolePermission(in *entity.RolePermission) ([]*entity.RolePermission, error) SelectRolePermissionByRolePk(in *entity.RolePermission) ([]*model.RolePermissionModel, error) SelectPermissionByRolePK(in *entity.RolePermission) ([]*entity.Permission, error) }
func NewRolePermission ¶
func NewRolePermission(dao dao.Dao) RolePermission
NewRolePermission 实例化接口规范实现类
type Svc ¶
type Svc interface { Wechat() Wechat UserPermission() UserPermission Permission() Permission Role() Role RoleGroup() RoleGroup RoleGroupPermission() RoleGroupPermission RolePermission() RolePermission PermissionGroup() PermissionGroup PermissionGroupPermission() PermissionGroupPermission User() User UserClient() UserClient Enterprise() Enterprise Files() Files UserProfession() UserProfession UserCredentials() UserCredentials PageResource() PageResource InterfaceResource() InterfaceResource PageInterface() PageInterface MenuResource() MenuResource Sms() Sms UserRealNameAuthenticationLog() UserRealNameAuthenticationLog EnterpriseAreaPermission() EnterpriseAreaPermission Department() Department Member() Member EnterpriseUser() EnterpriseUser RS() *helper.Redis }
Svc 定义接口规范
var S Svc
type TemporaryWorker ¶
type TemporaryWorker interface { SelectTemporaryWorker(en *model.TemporaryWorker, pg *entity.Pagination) ([]*model.TemporaryWorker, int32, error) CreateTemporaryWorker(en *entity.TemporaryWorker) (*entity.TemporaryWorker, error) }
func NewTemporaryWorker ¶
func NewTemporaryWorker(dao dao.Dao) TemporaryWorker
type TurnoverRecord ¶
type TurnoverRecord interface { SelectTurnoverRecord(record *entity.TurnoverRecord, pg *entity.Pagination) ([]*model.TurnoverRecord, int32, error) ApplicationForResignation(record *entity.TurnoverRecord) (*entity.TurnoverRecord, error) ApprovalApplication(record *entity.TurnoverRecord, userPk int64) (*entity.TurnoverRecord, error) }
func NewTurnoverRecord ¶
func NewTurnoverRecord(dao dao.Dao) TurnoverRecord
type User ¶
type User interface { Find(*entity.User) (*entity.User, error) Save(*entity.User) (*entity.User, error) UpdatePhone(*entity.User) error SelectAccountPage(*entity.User, *entity.Pagination) ([]*model.QfqzAccountModel, int64, error) SelectEnterpriseAccountPage(user *model.QfqzAccountModelForEnterprise, page *entity.Pagination) ([]*model.QfqzAccountModelForEnterprise, int64, error) SelectUser(*entity.User, *entity.Pagination) ([]*model.QfqzUserModel, int64, error) FindUser(*entity.User) (*model.QfqzUserModel, error) FindOaOpenid(unionId string) (openid string) UpdateBaseInfo(*entity.User) error }
type UserClient ¶
type UserClient interface {
DeleteByUserPkAndClientType(client *entity.UserClient) error
}
type UserCredentials ¶
type UserCredentials interface { FindCardByUserPk(credentials *entity.UserCredentials) (*entity.UserCredentials, error) FindListCardByUserPk(credentials *entity.UserCredentials) ([]*entity.UserCredentials, error) Find(credentials *entity.UserCredentials) (*entity.UserCredentials, error) Create(credentials *entity.UserCredentials) (*entity.UserCredentials, error) Delete(credentials *entity.UserCredentials) error Update(credentials *entity.UserCredentials) error }
func NewUserCredentials ¶
func NewUserCredentials(dao dao.Dao) UserCredentials
NewQfqzUser 实例化接口规范实现类
type UserEntry ¶
type UserEntry interface { Create(en *entity.UserEntry) (*entity.UserEntry, error) Select(en *model.UserEntryModel, pg *entity.Pagination, st, et *time.Time) ([]*model.UserEntryModel, int32, error) Update(en *entity.UserEntry) (*entity.UserEntry, error) FindByPk(en *entity.UserEntry) (*entity.UserEntry, error) CreateUserEntry(us *entity.User, e *entity.UserEntry) (*entity.UserEntry, error) Count(en *entity.UserEntry, st, et *time.Time) (int32, error) }
func NewUserEntry ¶
type UserPermission ¶
type UserPermission interface { Create(*entity.UserPermission) (*entity.UserPermission, error) CreateForCorporate(in *entity.UserPermission) error Delete(*entity.UserPermission) error Select(*entity.UserPermission, *dao.Pagination) ([]*entity.UserPermission, *dao.Pagination, error) SelectWithUserMessage(in *entity.UserPermission, pg *dao.Pagination) ([]*model.UserPermissionModel, *dao.Pagination, error) SelectWithEnterpriseUserMessage(in *entity.UserPermission, pg *dao.Pagination) ([]*model.UserPermissionForEnterprise, *dao.Pagination, error) SelectPermissionByUserPkAndEnterprisePk(in *entity.UserPermission) ([]*entity.Permission, error) Update(*entity.UserPermission) (*entity.UserPermission, error) SelectAllUserPermission(in *entity.UserPermission) ([]*entity.UserPermission, error) SelectUserInterfaceKeyByUserPkAndEnterprisePk(in *entity.UserPermission) ([]string, error) CompareUserInterfaceKey(in *entity.UserPermission, interfaceKey string) (bool, error) FullRefreshUserPermissionByUserPkAndEnterprisePk(userPk, enterprisePk int64) error CheckFullRefreshUserPermissionByUserPkAndEnterprisePk(userPk, enterprisePk int64) bool GetUserPermissionByUserPkAndEnterprisePkForRedis(userPk, enterprisePk int64) (*pb.FullUserPermissionResp, error) }
func NewUserPermission ¶
func NewUserPermission(dao dao.Dao) UserPermission
NewUserPermission 实例化接口规范实现类
type UserProfession ¶
type UserProfession interface { GetProfessionUsers(user *model.QfqzProfessionUserModel, e *entity.Pagination) ([]*model.QfqzProfessionUserModel, int32, error) SelectUserProfession(in *model.UserProfessionQuery, pg *dao.Pagination) ([]*model.UserProfession, *dao.Pagination, error) SelectUserProfessionForPlatform(in *model.UserProfessionForPlatformQuery, pg *dao.Pagination) ([]*model.UserProfessionForPlatform, *dao.Pagination, error) SelectProjectForUserProfession(in *model.ProjectQueryForUserProfession) ([]*model.Project, error) CheckUserProfessionIsRealName(userName string, userPk int64) int32 SelectUserCredentials(in *entity.UserCredentials) ([]*entity.UserCredentials, error) SelectUserEnterpriseByUserPk(userPk int64) ([]*model.UserProfessionWithEnterpriseNameAndStatus, error) FindEnterpriseAddressCodeList(areaPermission *entity.EnterpriseAreaPermission) ([]*entity.EnterpriseAreaPermission, error) SelectUserProfessionForSupervisePlatform(in *model.UserProfessionForSupervisePlatformQuery, pg *dao.Pagination) ([]*model.UserProfessionForPlatform, *dao.Pagination, error) SelectProjectNoPage(in *entity.Project) ([]*entity.Project, error) }
func NewUserProfession ¶
func NewUserProfession(dao dao.Dao) UserProfession
NewUserProfession 实例化接口规范实现类
type UserRealNameAuthenticationLog ¶
func NewUserRealNameAuthenticationLog ¶
func NewUserRealNameAuthenticationLog(dao dao.Dao) UserRealNameAuthenticationLog
NewUserRealNameAuthenticationLog 实例化接口规范实现类
type Wechat ¶
type Wechat interface { Oa() oa.App Mp() mp.App OaSaveSubscribe(string, string, int64) OaScan(string, string, string) error GetWxOaQrCode() (*pb.LoginQrCodeResp, error) PlatformLogin(string, string) error PlatformLoginLoop(key string) (string, error) AppletLogin(code string) (string, error) AppletRegister(loginCode, phoneCode, name string) (string, error) GetWxMpPhoneNumber(code string) (string, error) CreateEnterprise(*entity.User, string, *entity.Enterprise) error CreateEnterpriseForRelationProject(user *entity.User, code string, enterprise *entity.Enterprise) (*entity.Enterprise, error) }
Source Files ¶
- application_record.go
- department.go
- enterprise.go
- enterprise_area_permission.go
- enterprise_user.go
- enterprise_user_attachment.go
- files.go
- interface_resource.go
- member.go
- menu_resource.go
- page.go
- page_interface.go
- permission.go
- permission_group.go
- permission_group_permission.go
- position.go
- role.go
- role_group.go
- role_group_permission.go
- role_permission.go
- sms.go
- svc.go
- temporary_worker.go
- turnover_record.go
- user.go
- user_client.go
- user_credentials.go
- user_entry.go
- user_permission.go
- user_profession.go
- user_real_name_authentication_log.go
- wechat.go
Click to show internal directories.
Click to hide internal directories.