PageSourceSearch

https://www.socialhousing.tw/Portal/js/Svc/IndexSvc.js?v=2025_09_03_15_03

js socialhousing.tw collected 2026-09-26 00:32:36 UTC 6,087 bytes, 183 lines download raw bytes

1const IndexSvc = new BaseSvc();
2
3/* 頁尾
4* */
5IndexSvc.GetFooterData = async function () {
6    const url = util.GetUrl("/api/Index/footer");
7    const init = this.getDefaultRequestInit("Get");
8    return await parseResponse(await fetch(new Request(url, init)));
9};
10
11/* 首頁
12* */
13IndexSvc.GetIndexData = async function () {
14    const url = util.GetUrl("/api/Index/Index");
15    const init = this.getDefaultRequestInit("Get");
16    return await parseResponse(await fetch(new Request(url, init)));
17};
18
19/* 最新消息分類
20* */
21IndexSvc.GetNewsCategory = async function () {
22    const url = util.GetUrl("/api/Index/NewsCategory");
23    const init = this.getDefaultRequestInit("Get");
24    return await parseResponse(await fetch(new Request(url, init)));
25};
26
27/* 最新消息
28* */
29IndexSvc.GetNewsList = async function (category) {
30    const url = util.GetUrl(`/api/Index/NewsList/${category}`);
31    const init = this.getDefaultRequestInit("Get");
32    return await parseResponse(await fetch(new Request(url, init)));
33};
34
35/* 最新消息分類
36* */
37IndexSvc.GetDownloadDocCategory = async function () {
38    const url = util.GetUrl("/api/Index/DownloadDocCategory");
39    const init = this.getDefaultRequestInit("Get");
40    return await parseResponse(await fetch(new Request(url, init)));
41};
42
43/* 最新消息
44* */
45IndexSvc.GetDownloadDocList = async function (category) {
46    const url = util.GetUrl(`/api/Index/DownloadDocList/${category}`);
47    const init = this.getDefaultRequestInit("Get");
48    return await parseResponse(await fetch(new Request(url, init)));
49};
50
51/* 相關連結
52* */
53IndexSvc.GetRelatedWeb = async function () {
54    const url = util.GetUrl("/api/Index/RelatedWeb");
55    const init = this.getDefaultRequestInit("Get");
56    return await parseResponse(await fetch(new Request(url, init)));
57};
58
59/* SEO
60* */
61IndexSvc.GetSeoData = async function () {
62    const url = util.GetUrl("/api/Index/SEO");
63    const init = this.getDefaultRequestInit("Get");
64    return await parseResponse(await fetch(new Request(url, init)));
65};
66
67/* 帳戶資訊
68* */
69IndexSvc.GetUserData = async function () {
70    const url = util.GetUrl("/api/Auth/Read");
71    const init = this.getDefaultRequestInit("Get");
72    return await parseResponse(await fetch(new Request(url, init)));
73};
74
75IndexSvc.BuildSignalSign = async function () {
76    let url = util.GetUrl(`/api/Auth/BuildSignalSign`);
77    let init = this.getDefaultRequestInit('Get');
78    return await parseResponse(await fetch(new Request(url, init)));
79}
80
81/* 登出
82* */
83IndexSvc.LogOut = async function () {
84    const url = util.GetUrl("/api/Auth/LogOut");
85    const init = this.getDefaultRequestInit("Get");
86    return await parseResponse(await fetch(new Request(url, init)));
87};
88
89/* 生活圈縣市大樓
90* */
91IndexSvc.GetBuilding = async function () {
92    const url = util.GetUrl("/api/Building/Search/LifeZoneCityBuilding");
93    const init = this.getDefaultRequestInit("Get");
94    return await parseResponse(await fetch(new Request(url, init)));
95};
96
97/* 更新瀏覽數
98* */
99IndexSvc.UpdatePageview = async function (newsID) {
100    const url = util.GetUrl(`/api/HousingNews/News/${newsID}/Pageview`);
101    const init = this.getDefaultRequestInit("Put");
102    return await parseResponse(await fetch(new Request(url, init)));
103}
104
105/* 社宅查詢Options
106* */
107IndexSvc.GetSearchOptions = async function () {
108    const url = util.GetUrl("/api/Building/Search/Options");
109    const init = this.getDefaultRequestInit("Get");
110    return await parseResponse(await fetch(new Request(url, init)));
111};
112
113/* 安居好室社宅列表
114* */
115IndexSvc.GetGoodHouseList = async function () {
116    const url = util.GetUrl("/api/Building/Normal/List");
117    const init = this.getDefaultRequestInit("Get");
118    return await parseResponse(await fetch(new Request(url, init)));
119};
120
121/* 使用權社宅列表
122* */
123IndexSvc.GetUsageList = async function () {
124    const url = util.GetUrl("/api/Building/Usage/List");
125    const init = this.getDefaultRequestInit("Get");
126    return await parseResponse(await fetch(new Request(url, init)));
127};
128
129/* 安居好室社宅詳細資料
130* */
131IndexSvc.GetGoodHouseDetail = async function (NO_BUILD) {
132    const url = util.GetUrl(`/api/Building/Normal/${NO_BUILD}/Detail`);
133    const init = this.getDefaultRequestInit("Get");
134    return await parseResponse(await fetch(new Request(url, init)));
135};
136
137/* 安居好室社宅詳細資料
138* */
139IndexSvc.GetUsageDetail = async function (NO_BUILD) {
140    const url = util.GetUrl(`/api/Building/Usage/${NO_BUILD}/Detail`);
141    const init = this.getDefaultRequestInit("Get");
142    return await parseResponse(await fetch(new Request(url, init)));
143};
144
145/* 縣市鄉鎮列表
146* */
147IndexSvc.GetCityTown = async function () {
148    const url = util.GetUrl(`/api/Code/GetCityTown`);
149    const init = this.getDefaultRequestInit("Get");
150    return await parseResponse(await fetch(new Request(url, init)));
151};
152
153/* 區域縣市座標json取得
154* */
155IndexSvc.GetAreaCity = async function () {
156    const url = util.GetUrl(`/api/Index/AreaCity`);
157    const init = this.getDefaultRequestInit("Get");
158    return await parseResponse(await fetch(new Request(url, init)));
159};
160
161/* 首頁故事取得
162* */
163IndexSvc.GetStories = async function () {
164    const url = util.GetUrl(`/api/Index/Story`);
165    const init = this.getDefaultRequestInit("Get");
166    return await parseResponse(await fetch(new Request(url, init)));
167};
168
169/* 首頁社宅政策卡片資料
170* */
171IndexSvc.GetPolicyCards = async function () {
172    const url = util.GetUrl(`/api/Index/PolicyCards`);
173    const init = this.getDefaultRequestInit("Get");
174    return await parseResponse(await fetch(new Request(url, init)));
175};
176
177/* 首頁Modal特殊消息
178* */
179IndexSvc.GetSpecialMessage = async function () {
180    const url = util.GetUrl(`/api/Index/SpecialMessage`);
181    const init = this.getDefaultRequestInit("Get");
182    return await parseResponse(await fetch(new Request(url, init)));
183}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.