代码拉取完成,页面将自动刷新
// TemplateCode generated by goctl. DO NOT EDIT.
// Source: sys.proto
package accesscontrol
import (
"context"
"gitee.com/i-Things/core/service/syssvr/internal/svc"
"gitee.com/i-Things/core/service/syssvr/pb/sys"
"github.com/zeromicro/go-zero/zrpc"
"google.golang.org/grpc"
)
type (
AccessInfo = sys.AccessInfo
AccessInfoIndexReq = sys.AccessInfoIndexReq
AccessInfoIndexResp = sys.AccessInfoIndexResp
ApiInfo = sys.ApiInfo
ApiInfoIndexReq = sys.ApiInfoIndexReq
ApiInfoIndexResp = sys.ApiInfoIndexResp
AppInfo = sys.AppInfo
AppInfoIndexReq = sys.AppInfoIndexReq
AppInfoIndexResp = sys.AppInfoIndexResp
AppModuleIndexReq = sys.AppModuleIndexReq
AppModuleIndexResp = sys.AppModuleIndexResp
AppModuleMultiUpdateReq = sys.AppModuleMultiUpdateReq
AreaInfo = sys.AreaInfo
AreaInfoIndexReq = sys.AreaInfoIndexReq
AreaInfoIndexResp = sys.AreaInfoIndexResp
AreaInfoReadReq = sys.AreaInfoReadReq
AreaWithID = sys.AreaWithID
AuthApiInfo = sys.AuthApiInfo
ConfigResp = sys.ConfigResp
DateRange = sys.DateRange
JwtToken = sys.JwtToken
LoginLogCreateReq = sys.LoginLogCreateReq
LoginLogIndexReq = sys.LoginLogIndexReq
LoginLogIndexResp = sys.LoginLogIndexResp
LoginLogInfo = sys.LoginLogInfo
Map = sys.Map
MenuInfo = sys.MenuInfo
MenuInfoIndexReq = sys.MenuInfoIndexReq
MenuInfoIndexResp = sys.MenuInfoIndexResp
ModuleInfo = sys.ModuleInfo
ModuleInfoIndexReq = sys.ModuleInfoIndexReq
ModuleInfoIndexResp = sys.ModuleInfoIndexResp
OperLogCreateReq = sys.OperLogCreateReq
OperLogIndexReq = sys.OperLogIndexReq
OperLogIndexResp = sys.OperLogIndexResp
OperLogInfo = sys.OperLogInfo
PageInfo = sys.PageInfo
PageInfo_OrderBy = sys.PageInfo_OrderBy
Point = sys.Point
ProjectInfo = sys.ProjectInfo
ProjectInfoIndexReq = sys.ProjectInfoIndexReq
ProjectInfoIndexResp = sys.ProjectInfoIndexResp
ProjectWithID = sys.ProjectWithID
Response = sys.Response
RoleApiAuthReq = sys.RoleApiAuthReq
RoleApiIndexReq = sys.RoleApiIndexReq
RoleApiIndexResp = sys.RoleApiIndexResp
RoleApiMultiUpdateReq = sys.RoleApiMultiUpdateReq
RoleAppIndexReq = sys.RoleAppIndexReq
RoleAppIndexResp = sys.RoleAppIndexResp
RoleAppMultiUpdateReq = sys.RoleAppMultiUpdateReq
RoleAppUpdateReq = sys.RoleAppUpdateReq
RoleInfo = sys.RoleInfo
RoleInfoIndexReq = sys.RoleInfoIndexReq
RoleInfoIndexResp = sys.RoleInfoIndexResp
RoleMenuIndexReq = sys.RoleMenuIndexReq
RoleMenuIndexResp = sys.RoleMenuIndexResp
RoleMenuMultiUpdateReq = sys.RoleMenuMultiUpdateReq
RoleModuleIndexReq = sys.RoleModuleIndexReq
RoleModuleIndexResp = sys.RoleModuleIndexResp
RoleModuleMultiUpdateReq = sys.RoleModuleMultiUpdateReq
TenantApiIndexReq = sys.TenantApiIndexReq
TenantApiIndexResp = sys.TenantApiIndexResp
TenantApiMultiUpdateReq = sys.TenantApiMultiUpdateReq
TenantAppCreateReq = sys.TenantAppCreateReq
TenantAppIndexReq = sys.TenantAppIndexReq
TenantAppIndexResp = sys.TenantAppIndexResp
TenantAppMenu = sys.TenantAppMenu
TenantAppMenuIndexReq = sys.TenantAppMenuIndexReq
TenantAppMenuIndexResp = sys.TenantAppMenuIndexResp
TenantAppModule = sys.TenantAppModule
TenantAppMultiUpdateReq = sys.TenantAppMultiUpdateReq
TenantAppWithIDOrCode = sys.TenantAppWithIDOrCode
TenantInfo = sys.TenantInfo
TenantInfoCreateReq = sys.TenantInfoCreateReq
TenantInfoIndexReq = sys.TenantInfoIndexReq
TenantInfoIndexResp = sys.TenantInfoIndexResp
TenantModuleCreateReq = sys.TenantModuleCreateReq
TenantModuleIndexReq = sys.TenantModuleIndexReq
TenantModuleIndexResp = sys.TenantModuleIndexResp
TenantModuleWithIDOrCode = sys.TenantModuleWithIDOrCode
UserArea = sys.UserArea
UserAreaApplyCreateReq = sys.UserAreaApplyCreateReq
UserAreaApplyDealReq = sys.UserAreaApplyDealReq
UserAreaApplyIndexReq = sys.UserAreaApplyIndexReq
UserAreaApplyIndexResp = sys.UserAreaApplyIndexResp
UserAreaApplyInfo = sys.UserAreaApplyInfo
UserAreaIndexReq = sys.UserAreaIndexReq
UserAreaIndexResp = sys.UserAreaIndexResp
UserAreaMultiDeleteReq = sys.UserAreaMultiDeleteReq
UserAreaMultiUpdateReq = sys.UserAreaMultiUpdateReq
UserCaptchaReq = sys.UserCaptchaReq
UserCaptchaResp = sys.UserCaptchaResp
UserChangePwdReq = sys.UserChangePwdReq
UserCheckTokenReq = sys.UserCheckTokenReq
UserCheckTokenResp = sys.UserCheckTokenResp
UserCreateResp = sys.UserCreateResp
UserForgetPwdReq = sys.UserForgetPwdReq
UserInfo = sys.UserInfo
UserInfoCreateReq = sys.UserInfoCreateReq
UserInfoDeleteReq = sys.UserInfoDeleteReq
UserInfoIndexReq = sys.UserInfoIndexReq
UserInfoIndexResp = sys.UserInfoIndexResp
UserInfoReadReq = sys.UserInfoReadReq
UserLoginReq = sys.UserLoginReq
UserLoginResp = sys.UserLoginResp
UserProject = sys.UserProject
UserProjectIndexReq = sys.UserProjectIndexReq
UserProjectIndexResp = sys.UserProjectIndexResp
UserProjectMultiUpdateReq = sys.UserProjectMultiUpdateReq
UserRegisterReq = sys.UserRegisterReq
UserRegisterResp = sys.UserRegisterResp
UserRoleIndexReq = sys.UserRoleIndexReq
UserRoleIndexResp = sys.UserRoleIndexResp
UserRoleMultiUpdateReq = sys.UserRoleMultiUpdateReq
WithAppCodeID = sys.WithAppCodeID
WithID = sys.WithID
WithIDCode = sys.WithIDCode
Access interface {
ApiInfoCreate(ctx context.Context, in *ApiInfo, opts ...grpc.CallOption) (*WithID, error)
ApiInfoIndex(ctx context.Context, in *ApiInfoIndexReq, opts ...grpc.CallOption) (*ApiInfoIndexResp, error)
ApiInfoUpdate(ctx context.Context, in *ApiInfo, opts ...grpc.CallOption) (*Response, error)
ApiInfoDelete(ctx context.Context, in *WithID, opts ...grpc.CallOption) (*Response, error)
AccessInfoCreate(ctx context.Context, in *AccessInfo, opts ...grpc.CallOption) (*WithID, error)
AccessInfoIndex(ctx context.Context, in *AccessInfoIndexReq, opts ...grpc.CallOption) (*AccessInfoIndexResp, error)
AccessInfoUpdate(ctx context.Context, in *AccessInfo, opts ...grpc.CallOption) (*Response, error)
AccessInfoDelete(ctx context.Context, in *WithID, opts ...grpc.CallOption) (*Response, error)
}
defaultAccess struct {
cli zrpc.Client
}
directAccess struct {
svcCtx *svc.ServiceContext
svr sys.AccessServer
}
)
func NewAccess(cli zrpc.Client) Access {
return &defaultAccess{
cli: cli,
}
}
func NewDirectAccess(svcCtx *svc.ServiceContext, svr sys.AccessServer) Access {
return &directAccess{
svr: svr,
svcCtx: svcCtx,
}
}
func (m *defaultAccess) ApiInfoCreate(ctx context.Context, in *ApiInfo, opts ...grpc.CallOption) (*WithID, error) {
client := sys.NewAccessClient(m.cli.Conn())
return client.ApiInfoCreate(ctx, in, opts...)
}
func (d *directAccess) ApiInfoCreate(ctx context.Context, in *ApiInfo, opts ...grpc.CallOption) (*WithID, error) {
return d.svr.ApiInfoCreate(ctx, in)
}
func (m *defaultAccess) ApiInfoIndex(ctx context.Context, in *ApiInfoIndexReq, opts ...grpc.CallOption) (*ApiInfoIndexResp, error) {
client := sys.NewAccessClient(m.cli.Conn())
return client.ApiInfoIndex(ctx, in, opts...)
}
func (d *directAccess) ApiInfoIndex(ctx context.Context, in *ApiInfoIndexReq, opts ...grpc.CallOption) (*ApiInfoIndexResp, error) {
return d.svr.ApiInfoIndex(ctx, in)
}
func (m *defaultAccess) ApiInfoUpdate(ctx context.Context, in *ApiInfo, opts ...grpc.CallOption) (*Response, error) {
client := sys.NewAccessClient(m.cli.Conn())
return client.ApiInfoUpdate(ctx, in, opts...)
}
func (d *directAccess) ApiInfoUpdate(ctx context.Context, in *ApiInfo, opts ...grpc.CallOption) (*Response, error) {
return d.svr.ApiInfoUpdate(ctx, in)
}
func (m *defaultAccess) ApiInfoDelete(ctx context.Context, in *WithID, opts ...grpc.CallOption) (*Response, error) {
client := sys.NewAccessClient(m.cli.Conn())
return client.ApiInfoDelete(ctx, in, opts...)
}
func (d *directAccess) ApiInfoDelete(ctx context.Context, in *WithID, opts ...grpc.CallOption) (*Response, error) {
return d.svr.ApiInfoDelete(ctx, in)
}
func (m *defaultAccess) AccessInfoCreate(ctx context.Context, in *AccessInfo, opts ...grpc.CallOption) (*WithID, error) {
client := sys.NewAccessClient(m.cli.Conn())
return client.AccessInfoCreate(ctx, in, opts...)
}
func (d *directAccess) AccessInfoCreate(ctx context.Context, in *AccessInfo, opts ...grpc.CallOption) (*WithID, error) {
return d.svr.AccessInfoCreate(ctx, in)
}
func (m *defaultAccess) AccessInfoIndex(ctx context.Context, in *AccessInfoIndexReq, opts ...grpc.CallOption) (*AccessInfoIndexResp, error) {
client := sys.NewAccessClient(m.cli.Conn())
return client.AccessInfoIndex(ctx, in, opts...)
}
func (d *directAccess) AccessInfoIndex(ctx context.Context, in *AccessInfoIndexReq, opts ...grpc.CallOption) (*AccessInfoIndexResp, error) {
return d.svr.AccessInfoIndex(ctx, in)
}
func (m *defaultAccess) AccessInfoUpdate(ctx context.Context, in *AccessInfo, opts ...grpc.CallOption) (*Response, error) {
client := sys.NewAccessClient(m.cli.Conn())
return client.AccessInfoUpdate(ctx, in, opts...)
}
func (d *directAccess) AccessInfoUpdate(ctx context.Context, in *AccessInfo, opts ...grpc.CallOption) (*Response, error) {
return d.svr.AccessInfoUpdate(ctx, in)
}
func (m *defaultAccess) AccessInfoDelete(ctx context.Context, in *WithID, opts ...grpc.CallOption) (*Response, error) {
client := sys.NewAccessClient(m.cli.Conn())
return client.AccessInfoDelete(ctx, in, opts...)
}
func (d *directAccess) AccessInfoDelete(ctx context.Context, in *WithID, opts ...grpc.CallOption) (*Response, error) {
return d.svr.AccessInfoDelete(ctx, in)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。