mirror of
https://gitee.com/softnetcat/FCat.git
synced 2024-12-03 11:47:51 +08:00
漏提交文件
This commit is contained in:
parent
083b9cb199
commit
a997fb53c9
44
fcat-angular/src/app/baseinfo/t-authority.service.ts
Normal file
44
fcat-angular/src/app/baseinfo/t-authority.service.ts
Normal file
@ -0,0 +1,44 @@
|
||||
import {Injectable} from "@angular/core";
|
||||
import {HttpUtil} from "../util/http.util";
|
||||
import {TGroup} from "./t-group";
|
||||
|
||||
|
||||
@Injectable()
|
||||
export class TAuthorityService{
|
||||
private baseUrl = "/fcat-user/v1/tAuthority";
|
||||
constructor(private httpUtil: HttpUtil){
|
||||
}
|
||||
|
||||
getList(currentPage:number, pageSize:number) {
|
||||
let param = "?pageSize="+pageSize+"&pageNum="+currentPage;
|
||||
let url = this.baseUrl+"/listByPage"+param;
|
||||
return this.httpUtil.get(url);
|
||||
}
|
||||
|
||||
delete(id:any){
|
||||
let url = this.baseUrl+"/"+id;
|
||||
return this.httpUtil.delete(url);
|
||||
}
|
||||
|
||||
add(tGroup: TGroup){
|
||||
let url = this.baseUrl+"/add";
|
||||
return this.httpUtil.post(url, tGroup);
|
||||
}
|
||||
getById(id:number){
|
||||
let url = this.baseUrl+"/"+id;
|
||||
return this.httpUtil.get(url);
|
||||
}
|
||||
update(tGroup: TGroup){
|
||||
let url = this.baseUrl+"/update";
|
||||
return this.httpUtil.put(url, tGroup);
|
||||
}
|
||||
authority(param:any,groupId:number) {
|
||||
let url = this.baseUrl+"/"+groupId;
|
||||
return this.httpUtil.post(url, param);
|
||||
}
|
||||
|
||||
getAuthority(groupId:number) {
|
||||
let url = this.baseUrl+"/"+groupId;
|
||||
return this.httpUtil.get(url);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user