You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							13 lines
						
					
					
						
							257 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							13 lines
						
					
					
						
							257 B
						
					
					
				
								package models
							 | 
						|
								
							 | 
						|
								import "github.com/beego/beego/v2/client/orm"
							 | 
						|
								
							 | 
						|
								type SysRolesDepts struct {
							 | 
						|
									Id int64
							 | 
						|
									RoleId *SysRole `orm:"column(role_id);rel(fk)"`
							 | 
						|
									DeptId *SysDept `orm:"column(dept_id);rel(fk)"`
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								func init() {
							 | 
						|
									orm.RegisterModel(new(SysRolesDepts))
							 | 
						|
								}
							 | 
						|
								
							 |